From 5621fdd412a0b02a5ed858baa7c2a9db4795ae1f Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Wed, 29 Feb 2012 13:33:33 +0100 Subject: [PATCH] [autofit] Don't synchronize digit widths for light rendering mode. We don't hint horizontally in this mode. * src/autofit/afloader.c (af_loader_load_g) : Implement it. --- ChangeLog | 9 +++++++++ src/autofit/afloader.c | 7 ++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c50ce955b..2d89d1256 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2012-02-29 Werner Lemberg + + [autofit] Don't synchronize digit widths for light rendering mode. + + We don't hint horizontally in this mode. + + * src/autofit/afloader.c (af_loader_load_g) : + Implement it. + 2012-02-26 Alexei Podtelezhnikov [type42] Minor code optimization (again). diff --git a/src/autofit/afloader.c b/src/autofit/afloader.c index 84a7fa840..34ef9d809 100644 --- a/src/autofit/afloader.c +++ b/src/autofit/afloader.c @@ -433,9 +433,10 @@ slot->metrics.horiAdvance = FT_MulFix( slot->metrics.horiAdvance, x_scale ); #else - if ( FT_IS_FIXED_WIDTH( slot->face ) || - ( af_face_globals_is_digit( loader->globals, glyph_index ) && - metrics->digits_have_same_width ) ) + if ( scaler->render_mode != FT_RENDER_MODE_LIGHT && + ( FT_IS_FIXED_WIDTH( slot->face ) || + ( af_face_globals_is_digit( loader->globals, glyph_index ) && + metrics->digits_have_same_width ) ) ) { slot->metrics.horiAdvance = FT_MulFix( slot->metrics.horiAdvance, metrics->scaler.x_scale );