removed an over-zealous assertation that halted the engine
with a few weird fonts.
This commit is contained in:
parent
61492029a5
commit
33ec7d473b
|
@ -188,7 +188,16 @@
|
||||||
BASE_FUNC
|
BASE_FUNC
|
||||||
void FT_Forget_Frame( FT_Stream stream )
|
void FT_Forget_Frame( FT_Stream stream )
|
||||||
{
|
{
|
||||||
FT_Assert( stream && stream->cursor != 0 );
|
/* IMPORTANT: The assertion stream->cursor != 0 was removed, given */
|
||||||
|
/* that it is possible to access a frame of length 0 in */
|
||||||
|
/* some weird fonts (usually, when accessing an array of */
|
||||||
|
/* 0 records, like in some strange kern tables).. */
|
||||||
|
/* */
|
||||||
|
/* In this case, the loader code handles the 0-length table */
|
||||||
|
/* gracefully, however, stream.cursor is really set to 0 by the */
|
||||||
|
/* FT_Access_Frame call, and this is not an error.. */
|
||||||
|
/* */
|
||||||
|
FT_Assert( stream );
|
||||||
|
|
||||||
if (stream->read)
|
if (stream->read)
|
||||||
{
|
{
|
||||||
|
@ -206,7 +215,7 @@
|
||||||
{
|
{
|
||||||
FT_Char result;
|
FT_Char result;
|
||||||
|
|
||||||
FT_Assert( stream && stream->cursor && stream->cursor );
|
FT_Assert( stream && stream->cursor );
|
||||||
|
|
||||||
result = 0;
|
result = 0;
|
||||||
if (stream->cursor < stream->limit)
|
if (stream->cursor < stream->limit)
|
||||||
|
|
Loading…
Reference in New Issue