* src/base/ftobjs.c (ft_open_face_internal): Improve tracing.

This commit is contained in:
Werner Lemberg 2017-01-12 08:42:55 +01:00
parent 56645f8a8b
commit c529885b0b
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2017-01-11 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (ft_open_face_internal): Improve tracing.
2017-01-11 Werner Lemberg <wl@gnu.org>
[truetype] Actually use metrics variation service.

View File

@ -2443,10 +2443,12 @@
#ifdef FT_DEBUG_LEVEL_TRACE
if ( !error && face_index < 0 )
{
FT_TRACE3(( "FT_Open_Face: The font has %ld faces\n"
" and %ld named instances for face %ld\n",
FT_TRACE3(( "FT_Open_Face: The font has %ld face%s\n"
" and %ld named instance%s for face %ld\n",
face->num_faces,
face->num_faces == 1 ? "" : "s",
face->style_flags >> 16,
( face->style_flags >> 16 ) == 1 ? "" : "s",
-face_index - 1 ));
}
#endif