From 19188a9a190ff6469601b23db07d4984393acd1a Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 26 Sep 2015 16:57:17 +0200 Subject: [PATCH] [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 4665692a4..b7d4e320f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-09-26 Werner Lemberg + + [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 [bzip2, gzip, lzw] Harmonize function signatures with prototype. diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c index 954da07a5..5ccd3131e 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++ )