forked from minhngoc25a/freetype2
* src/autofit/afloader.c (af_loader_load_g): Don't change width for
non-spacing glyphs.
This commit is contained in:
parent
be6fe77405
commit
582067dc92
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue