forked from enlightenment/efl
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:
parent
cbde1fd9ad
commit
3e5a5aac7b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue