[cff] Dump SIDs while tracing.

* src/cff/cffobjs.c (cff_face_init): Do it.

* src/cff/cffparse.c (cff_parser_run) [FT_DEBUG_LEVEL_TRACE]
<cff_kind_string>: Identify as SID.
This commit is contained in:
Werner Lemberg 2011-09-26 08:59:21 +02:00
parent 34eca6ec63
commit 34d2818a75
3 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2011-09-26 Werner Lemberg <wl@gnu.org>
[cff] Dump SIDs while tracing.
* src/cff/cffobjs.c (cff_face_init): Do it.
* src/cff/cffparse.c (cff_parser_run) [FT_DEBUG_LEVEL_TRACE]
<cff_kind_string>: Identify as SID.
2011-09-17 Werner Lemberg <wl@gnu.org>
Remove unused FT_ALIGNMENT macro.

View File

@ -607,6 +607,24 @@
goto Bad_Format;
}
#ifdef FT_DEBUG_LEVEL_TRACE
{
FT_UInt idx;
FT_String* s;
FT_TRACE4(( "SIDs\n" ));
/* dump string index, including default strings for convenience */
for ( idx = 0; idx < cff->num_strings + 390; idx++ )
{
s = cff_index_get_sid_string( cff, idx );
if ( s )
FT_TRACE4((" %5d %s\n", idx, s ));
}
}
#endif /* FT_DEBUG_LEVEL_TRACE */
if ( !dict->has_font_matrix )
dict->units_per_em = pure_cff ? 1000 : face->root.units_per_EM;

View File

@ -1004,6 +1004,9 @@
break;
case cff_kind_string:
FT_TRACE4(( " %ld (SID)\n", val ));
break;
case cff_kind_num:
FT_TRACE4(( " %ld\n", val ));
break;