forked from minhngoc25a/freetype2
* src/base/ftobjs.c (ft_recompute_scaled_metrics): re-enable conservative
rounding of metrics to avoid breaking clients like Pango (see http://bugzilla.gnome.org/show_bug.cgi?id=327852)
This commit is contained in:
parent
ae1e4b1577
commit
b463665feb
|
@ -1,3 +1,9 @@
|
|||
2006-02-26 David Turner <david@freetype.org>
|
||||
|
||||
* src/base/ftobjs.c (ft_recompute_scaled_metrics): re-enable conservative
|
||||
rounding of metrics to avoid breaking clients like Pango
|
||||
(see http://bugzilla.gnome.org/show_bug.cgi?id=327852)
|
||||
|
||||
2006-02-25 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* devel/ftoption.h: Synchronize with
|
||||
|
|
|
@ -2063,6 +2063,19 @@
|
|||
{
|
||||
/* Compute root ascender, descender, test height, and max_advance */
|
||||
|
||||
#if 1
|
||||
metrics->ascender = FT_PIX_CEIL( FT_MulFix( face->ascender,
|
||||
metrics->y_scale ) );
|
||||
|
||||
metrics->descender = FT_PIX_FLOOR( FT_MulFix( face->descender,
|
||||
metrics->y_scale ) );
|
||||
|
||||
metrics->height = FT_PIX_ROUND( FT_MulFix( face->height,
|
||||
metrics->y_scale ) );
|
||||
|
||||
metrics->max_advance = FT_PIX_ROUND( FT_MulFix( face->max_advance_width,
|
||||
metrics->x_scale ) );
|
||||
#else
|
||||
metrics->ascender = FT_MulFix( face->ascender,
|
||||
metrics->y_scale );
|
||||
|
||||
|
@ -2074,6 +2087,7 @@
|
|||
|
||||
metrics->max_advance = FT_MulFix( face->max_advance_width,
|
||||
metrics->x_scale );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue