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:
Tom Hacohen 2012-06-17 07:18:50 +00:00
parent 67a8db57b1
commit 6e3ddcd6a0
2 changed files with 3 additions and 1 deletions

View File

@ -404,7 +404,8 @@ evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt idx)
{
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->x_bear = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMin);
}

View File

@ -502,3 +502,4 @@ evas_common_text_props_content_create(void *_fi, const Eina_Unicode *text,
text_props->info->refcount = 1;
return EINA_TRUE;
}