freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 2f2e73c 1/3: [autofit] Tracing fixes.


From: Werner LEMBERG
Subject: [freetype2] master 2f2e73c 1/3: [autofit] Tracing fixes.
Date: Sun, 25 Sep 2016 14:29:19 +0000 (UTC)

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

    [autofit] Tracing fixes.
    
    * src/autofit/afmodule.c (af_autofitter_load_glyph): Call dumping
    functions only if we actually do tracing.
---
 ChangeLog              |    7 +++++++
 src/autofit/afmodule.c |   13 ++++++++++---
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e698225..cb9ac8f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-09-24  Werner Lemberg  <address@hidden>
+
+       [autofit] Tracing fixes.
+
+       * src/autofit/afmodule.c (af_autofitter_load_glyph): Call dumping
+       functions only if we actually do tracing.
+
 2016-09-22  Alexei Podtelezhnikov  <address@hidden>
 
        [smooth] Reduce divisions in the line renderer.
diff --git a/src/autofit/afmodule.c b/src/autofit/afmodule.c
index 681501b..f325ebf 100644
--- a/src/autofit/afmodule.c
+++ b/src/autofit/afmodule.c
@@ -521,9 +521,16 @@
     error = af_loader_load_glyph( loader, module, slot->face,
                                   glyph_index, load_flags );
 
-    af_glyph_hints_dump_points( hints, 0 );
-    af_glyph_hints_dump_segments( hints, 0 );
-    af_glyph_hints_dump_edges( hints, 0 );
+#ifdef FT_DEBUG_LEVEL_TRACE
+    if ( ft_trace_levels[FT_COMPONENT] )
+    {
+#endif
+      af_glyph_hints_dump_points( hints, 0 );
+      af_glyph_hints_dump_segments( hints, 0 );
+      af_glyph_hints_dump_edges( hints, 0 );
+#ifdef FT_DEBUG_LEVEL_TRACE
+    }
+#endif
 
     af_loader_done( loader );
 



reply via email to

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