ref: 582067dc921e012e256989b4b623fd3f4688358a
parent: be6fe77405c52248cae73f172395cae2314cb8c5
author: Werner Lemberg <[email protected]>
date: Sun Feb 11 10:03:05 EST 2007
* src/autofit/afloader.c (af_loader_load_g): Don't change width for non-spacing glyphs.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-11 Werner Lemberg <[email protected]>
+
+ * src/autofit/afloader.c (af_loader_load_g): Don't change width for
+ non-spacing glyphs.
+
2007-02-07 Tom Parker <[email protected]>
* src/cff/cffdrivr.c (cff_get_name_index): Protect against NULL
--- a/src/autofit/afloader.c
+++ b/src/autofit/afloader.c
@@ -422,7 +422,11 @@
x_scale );
#else
if ( !FT_IS_FIXED_WIDTH( slot->face ) )
- slot->metrics.horiAdvance = loader->pp2.x - loader->pp1.x;
+ {
+ /* non-spacing glyphs must stay as-is */
+ if ( slot->metrics.horiAdvance )
+ slot->metrics.horiAdvance = loader->pp2.x - loader->pp1.x;
+ }
else
slot->metrics.horiAdvance = FT_MulFix( slot->metrics.horiAdvance,
metrics->scaler.x_scale );