* src/autofit/afloader.c (af_loader_load_g): Don't change width for

non-spacing glyphs.
This commit is contained in:
Werner Lemberg 2007-02-11 15:03:05 +00:00
parent be6fe77405
commit 582067dc92
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-02-11 Werner Lemberg <wl@gnu.org>
* src/autofit/afloader.c (af_loader_load_g): Don't change width for
non-spacing glyphs.
2007-02-07 Tom Parker <palfrey@tevp.net>
* src/cff/cffdrivr.c (cff_get_name_index): Protect against NULL

View File

@ -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 );