ref: 19188a9a190ff6469601b23db07d4984393acd1a
parent: 4187753970107f5892df78dad87968ab2ffb1b28
author: Werner Lemberg <[email protected]>
date: Sat Sep 26 12:57:17 EDT 2015
[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.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2015-09-26 Werner Lemberg <[email protected]>
+ [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 <[email protected]>
+
[bzip2, gzip, lzw] Harmonize function signatures with prototype.
Suggested by Hin-Tak Leung.
--- 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++ )