shithub: freetype+ttf2subf

Download patch

ref: c529885b0b33af56f3daa29a3acec9ab9fb10fb7
parent: 56645f8a8ba0a08ed2bd383b5a1558e5c790bf74
author: Werner Lemberg <[email protected]>
date: Thu Jan 12 03:42:55 EST 2017

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2017-01-11  Werner Lemberg  <[email protected]>
 
+	* src/base/ftobjs.c (ft_open_face_internal): Improve tracing.
+
+2017-01-11  Werner Lemberg  <[email protected]>
+
 	[truetype] Actually use metrics variation service.
 
 	* src/base/ftmm.c: Include FT_SERVICE_METRICS_VARIATIONS_H.
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -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