[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) <Hint_Metrics>: Implement it.
This commit is contained in:
parent
c18c1882c2
commit
5621fdd412
|
@ -1,3 +1,12 @@
|
|||
2012-02-29 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[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) <Hint_Metrics>:
|
||||
Implement it.
|
||||
|
||||
2012-02-26 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
[type42] Minor code optimization (again).
|
||||
|
|
|
@ -433,9 +433,10 @@
|
|||
slot->metrics.horiAdvance = FT_MulFix( slot->metrics.horiAdvance,
|
||||
x_scale );
|
||||
#else
|
||||
if ( FT_IS_FIXED_WIDTH( slot->face ) ||
|
||||
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 ) )
|
||||
metrics->digits_have_same_width ) ) )
|
||||
{
|
||||
slot->metrics.horiAdvance = FT_MulFix( slot->metrics.horiAdvance,
|
||||
metrics->scaler.x_scale );
|
||||
|
|
Loading…
Reference in New Issue