freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 19188a9 4/4: [autofit] Minor tracing improvement.


From: Werner LEMBERG
Subject: [freetype2] master 19188a9 4/4: [autofit] Minor tracing improvement.
Date: Sat, 26 Sep 2015 16:46:35 +0000

branch: master
commit 19188a9a190ff6469601b23db07d4984393acd1a
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>

    [autofit] Minor tracing improvement.
    
    * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Don't emit
    blue zones header line if there are no blue zones.
---
 ChangeLog             |    7 +++++++
 src/autofit/aflatin.c |    7 +++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4665692..b7d4e32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2015-09-26  Werner Lemberg  <address@hidden>
 
+       [autofit] Minor tracing improvement.
+
+       * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Don't emit
+       blue zones header line if there are no blue zones.
+
+2015-09-26  Werner Lemberg  <address@hidden>
+
        [bzip2, gzip, lzw] Harmonize function signatures with prototype.
 
        Suggested by Hin-Tak Leung.
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 954da07..5ccd313 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -1038,8 +1038,11 @@
 
     if ( dim == AF_DIMENSION_VERT )
     {
-      FT_TRACE5(( "blue zones (style `%s')\n",
-                  af_style_names[metrics->root.style_class->style] ));
+#ifdef FT_DEBUG_LEVEL_TRACE
+      if ( axis->blue_count )
+        FT_TRACE5(( "blue zones (style `%s')\n",
+                    af_style_names[metrics->root.style_class->style] ));
+#endif
 
       /* scale the blue zones */
       for ( nn = 0; nn < axis->blue_count; nn++ )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]