freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master f02e1df: [autofit] Fix tracing message.


From: Werner LEMBERG
Subject: [freetype2] master f02e1df: [autofit] Fix tracing message.
Date: Wed, 09 Dec 2015 13:45:53 +0000

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

    [autofit] Fix tracing message.
    
    * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Display
    inactive blue zones also.
---
 ChangeLog             |    7 +++++++
 src/autofit/aflatin.c |   34 +++++++++++++++++++++-------------
 2 files changed, 28 insertions(+), 13 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a8a823c..ef42ba7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-12-09  Werner Lemberg  <address@hidden>
+
+       [autofit] Fix tracing message.
+
+       * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Display
+       inactive blue zones also.
+
 2015-12-06  Werner Lemberg  <address@hidden>
 
        * src/autofit/afblue.dat: Add more Khmer clusters.
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 495a32a..0ad634e 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -1256,21 +1256,29 @@
 #endif
 
           blue->flags |= AF_LATIN_BLUE_ACTIVE;
-
-          FT_TRACE5(( "  reference %d: %d scaled to %.2f%s\n"
-                      "  overshoot %d: %d scaled to %.2f%s\n",
-                      nn,
-                      blue->ref.org,
-                      blue->ref.fit / 64.0,
-                      blue->flags & AF_LATIN_BLUE_ACTIVE ? ""
-                                                         : " (inactive)",
-                      nn,
-                      blue->shoot.org,
-                      blue->shoot.fit / 64.0,
-                      blue->flags & AF_LATIN_BLUE_ACTIVE ? ""
-                                                         : " (inactive)" ));
         }
       }
+
+#ifdef FT_DEBUG_LEVEL_TRACE
+      for ( nn = 0; nn < axis->blue_count; nn++ )
+      {
+        AF_LatinBlue  blue = &axis->blues[nn];
+
+
+        FT_TRACE5(( "  reference %d: %d scaled to %.2f%s\n"
+                    "  overshoot %d: %d scaled to %.2f%s\n",
+                    nn,
+                    blue->ref.org,
+                    blue->ref.fit / 64.0,
+                    blue->flags & AF_LATIN_BLUE_ACTIVE ? ""
+                                                       : " (inactive)",
+                    nn,
+                    blue->shoot.org,
+                    blue->shoot.fit / 64.0,
+                    blue->flags & AF_LATIN_BLUE_ACTIVE ? ""
+                                                       : " (inactive)" ));
+      }
+#endif
     }
   }
 



reply via email to

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