* src/base/ftobjs.c (FT_Load_Glyph): Improve tracing.
This commit is contained in:
parent
f04d81751a
commit
1b2abda9d2
|
@ -1,3 +1,7 @@
|
||||||
|
2018-05-13 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* src/base/ftobjs.c (FT_Load_Glyph): Improve tracing.
|
||||||
|
|
||||||
2018-05-13 Shao Yu Zhang <shaozhang@fb.com>
|
2018-05-13 Shao Yu Zhang <shaozhang@fb.com>
|
||||||
Werner Lemberg <wl@gnu.org>
|
Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -1024,17 +1024,34 @@
|
||||||
ft_glyphslot_preset_bitmap( slot, mode, NULL );
|
ft_glyphslot_preset_bitmap( slot, mode, NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
FT_TRACE5(( "FT_Load_Glyph: index %d, flags %x\n",
|
#ifdef FT_DEBUG_LEVEL_TRACE
|
||||||
glyph_index, load_flags ));
|
{
|
||||||
FT_TRACE5(( " x advance: %f\n", slot->advance.x / 64.0 ));
|
const char* pixel_modes[] = { "none",
|
||||||
FT_TRACE5(( " y advance: %f\n", slot->advance.y / 64.0 ));
|
"monochrome bitmap",
|
||||||
FT_TRACE5(( " linear x advance: %f\n",
|
"gray 8-bit bitmap",
|
||||||
slot->linearHoriAdvance / 65536.0 ));
|
"gray 2-bit bitmap",
|
||||||
FT_TRACE5(( " linear y advance: %f\n",
|
"gray 4-bit bitmap",
|
||||||
slot->linearVertAdvance / 65536.0 ));
|
"LCD 8-bit bitmap",
|
||||||
FT_TRACE5(( " bitmap %dx%d, mode %d\n",
|
"vertical LCD 8-bit bitmap",
|
||||||
slot->bitmap.width, slot->bitmap.rows,
|
"BGRA 32-bit color image bitmap"
|
||||||
slot->bitmap.pixel_mode ));
|
};
|
||||||
|
|
||||||
|
|
||||||
|
FT_TRACE5(( "FT_Load_Glyph: index %d, flags 0x%x\n",
|
||||||
|
glyph_index, load_flags ));
|
||||||
|
FT_TRACE5(( " x advance: %f\n", slot->advance.x / 64.0 ));
|
||||||
|
FT_TRACE5(( " y advance: %f\n", slot->advance.y / 64.0 ));
|
||||||
|
FT_TRACE5(( " linear x advance: %f\n",
|
||||||
|
slot->linearHoriAdvance / 65536.0 ));
|
||||||
|
FT_TRACE5(( " linear y advance: %f\n",
|
||||||
|
slot->linearVertAdvance / 65536.0 ));
|
||||||
|
FT_TRACE5(( " bitmap %dx%d, %s (mode %d)\n",
|
||||||
|
slot->bitmap.width,
|
||||||
|
slot->bitmap.rows,
|
||||||
|
pixel_modes[slot->bitmap.pixel_mode],
|
||||||
|
slot->bitmap.pixel_mode ));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Exit:
|
Exit:
|
||||||
return error;
|
return error;
|
||||||
|
|
Loading…
Reference in New Issue