forked from minhngoc25a/freetype2
Minor tracing adjustments.
* src/base/ftstream.c (FT_Stream_EnterFrame, FT_Stream_ExitFrame): Trace. * src/truetype/ttgload.c (TT_Access_Glyph_Frame): Remove tracing.
This commit is contained in:
parent
6e339b8d8e
commit
4738dcc4df
|
@ -1,3 +1,12 @@
|
|||
2018-08-26 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
Minor tracing adjustments.
|
||||
|
||||
* src/base/ftstream.c (FT_Stream_EnterFrame, FT_Stream_ExitFrame):
|
||||
Trace.
|
||||
|
||||
* src/truetype/ttgload.c (TT_Access_Glyph_Frame): Remove tracing.
|
||||
|
||||
2018-08-26 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[truetype] Avoid nested frames.
|
||||
|
|
|
@ -239,6 +239,8 @@
|
|||
FT_ULong read_bytes;
|
||||
|
||||
|
||||
FT_TRACE7(( "FT_Stream_EnterFrame: %ld bytes\n", count ));
|
||||
|
||||
/* check for nested frame access */
|
||||
FT_ASSERT( stream && stream->cursor == 0 );
|
||||
|
||||
|
@ -323,7 +325,9 @@
|
|||
/* In this case, the loader code handles the 0-length table */
|
||||
/* gracefully; however, stream.cursor is really set to 0 by the */
|
||||
/* FT_Stream_EnterFrame() call, and this is not an error. */
|
||||
/* */
|
||||
|
||||
FT_TRACE7(( "FT_Stream_ExitFrame\n" ));
|
||||
|
||||
FT_ASSERT( stream );
|
||||
|
||||
if ( stream->read )
|
||||
|
|
|
@ -282,12 +282,9 @@
|
|||
FT_Error error;
|
||||
FT_Stream stream = loader->stream;
|
||||
|
||||
/* for non-debug mode */
|
||||
FT_UNUSED( glyph_index );
|
||||
|
||||
|
||||
FT_TRACE4(( "Glyph %ld\n", glyph_index ));
|
||||
|
||||
/* the following line sets the `error' variable through macros! */
|
||||
if ( FT_STREAM_SEEK( offset ) || FT_FRAME_ENTER( byte_count ) )
|
||||
return error;
|
||||
|
|
Loading…
Reference in New Issue