Commit c529885b0b33af56f3daa29a3acec9ab9fb10fb7

Werner Lemberg 2017-01-12T08:42:55

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

diff --git a/ChangeLog b/ChangeLog
index 1a96831..8f1127a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
 
 	* src/base/ftmm.c: Include FT_SERVICE_METRICS_VARIATIONS_H.
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index c44c6ec..59d65e2 100644
--- 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