mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-05 13:38:01 +02:00
* src/autofit/afadjust.c (af_reverse_character_map_new): Add tracing code.
This commit is contained in:
parent
c34e551cad
commit
535498a0f9
1 changed files with 34 additions and 0 deletions
|
|
@ -813,6 +813,40 @@
|
|||
FT_TRACE4(( " reverse character map built successfully"
|
||||
" with %ld entries\n", ( *map )->length ));
|
||||
|
||||
#ifdef FT_DEBUG_LEVEL_TRACE
|
||||
{
|
||||
FT_Long i;
|
||||
|
||||
|
||||
FT_TRACE7(( " gidx code adj tilde\n" ));
|
||||
/* " XXXXX 0xXXXX XXXX XXX" */
|
||||
FT_TRACE7(( " ----------------------------\n" ));
|
||||
|
||||
for ( i = 0; i < ( *map )->length; i++ )
|
||||
{
|
||||
FT_Long glyph_index = ( *map )->entries[i].glyph_index;
|
||||
FT_Int codepoint = ( *map )->entries[i].codepoint;
|
||||
|
||||
AF_VerticalSeparationAdjustmentType adj_type =
|
||||
af_lookup_vertical_separation_type( *map, glyph_index );
|
||||
FT_Bool is_tilde =
|
||||
af_lookup_tilde_correction_type( *map, glyph_index );
|
||||
|
||||
|
||||
FT_TRACE7(( " %5ld 0x%04X %4s %3s\n",
|
||||
glyph_index,
|
||||
codepoint,
|
||||
adj_type == AF_VERTICAL_ADJUSTMENT_BOTTOM_CONTOUR_DOWN
|
||||
? "down"
|
||||
: adj_type == AF_VERTICAL_ADJUSTMENT_TOP_CONTOUR_UP
|
||||
? "up"
|
||||
: "",
|
||||
is_tilde ? "yes" : "no" ));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Exit:
|
||||
face->charmap = old_charmap;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue