Evas textblock: Fixed rendering issues with small fonts.

GRIDFIT when we HINT, get the UNSCALED sizes otherwise.

SVN revision: 72409
This commit is contained in:
Tom Hacohen 2012-06-18 15:43:49 +00:00
parent cbde1fd9ad
commit 3e5a5aac7b
1 changed files with 3 additions and 1 deletions

View File

@ -404,7 +404,9 @@ evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt idx)
{
FT_BBox outbox;
FT_Glyph_Get_CBox(fg->glyph, FT_GLYPH_BBOX_UNSCALED,
FT_Glyph_Get_CBox(fg->glyph,
((fi->hinting == 0) ? FT_GLYPH_BBOX_UNSCALED :
FT_GLYPH_BBOX_GRIDFIT),
&outbox);
fg->width = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMax - outbox.xMin);
fg->x_bear = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMin);