Evas font: Fix the font engine to work with Bitmap fonts.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 17 Jun 2012 07:18:50 +0000 (07:18 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 17 Jun 2012 07:18:50 +0000 (07:18 +0000)
Oops, I used the Outline CBox function instead of the Glyph one. Fixed.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@72278 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_main.c
src/lib/engines/common/evas_text_utils.c

index 06e0f9d..10f0d7a 100644 (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);
      }
index 1cdcacd..b2e291e 100644 (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;
 }
+