summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_font_main.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-06-17 07:18:50 +0000
committerTom Hacohen <tom@stosb.com>2012-06-17 07:18:50 +0000
commit6e3ddcd6a025c7df0d2db850519a7ef6643c6990 (patch)
tree69402c6f9b372e7e0ddf212d89ed1996bcf3c610 /legacy/evas/src/lib/engines/common/evas_font_main.c
parent67a8db57b18b9f5d0b059175f25d1348dd88ab22 (diff)
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
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_font_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_font_main.c b/legacy/evas/src/lib/engines/common/evas_font_main.c
index 06e0f9db3e..10f0d7ab5b 100644
--- a/legacy/evas/src/lib/engines/common/evas_font_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_font_main.c
@@ -404,7 +404,8 @@ evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt idx)
404 404
405 { 405 {
406 FT_BBox outbox; 406 FT_BBox outbox;
407 FT_Outline_Get_CBox(&fi->src->ft.face->glyph->outline, &outbox); 407 FT_Glyph_Get_CBox(fg->glyph, FT_GLYPH_BBOX_UNSCALED,
408 &outbox);
408 fg->width = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMax - outbox.xMin); 409 fg->width = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMax - outbox.xMin);
409 fg->x_bear = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMin); 410 fg->x_bear = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMin);
410 } 411 }