forked from enlightenment/efl
Evas font: Fix the font engine to work with Bitmap fonts.
Oops, I used the Outline CBox function instead of the Glyph one. Fixed. SVN revision: 72278
This commit is contained in:
parent
67a8db57b1
commit
6e3ddcd6a0
|
@ -404,7 +404,8 @@ evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt idx)
|
||||||
|
|
||||||
{
|
{
|
||||||
FT_BBox outbox;
|
FT_BBox outbox;
|
||||||
FT_Outline_Get_CBox(&fi->src->ft.face->glyph->outline, &outbox);
|
FT_Glyph_Get_CBox(fg->glyph, FT_GLYPH_BBOX_UNSCALED,
|
||||||
|
&outbox);
|
||||||
fg->width = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMax - outbox.xMin);
|
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);
|
fg->x_bear = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMin);
|
||||||
}
|
}
|
||||||
|
|
|
@ -502,3 +502,4 @@ evas_common_text_props_content_create(void *_fi, const Eina_Unicode *text,
|
||||||
text_props->info->refcount = 1;
|
text_props->info->refcount = 1;
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue