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-18 15:43:49 +0000
committerTom Hacohen <tom@stosb.com>2012-06-18 15:43:49 +0000
commit3e5a5aac7b81c7595367246ee8423c017ca72f95 (patch)
treee24d55caaef6070619b7baa1f63cb46f75b1d3da /legacy/evas/src/lib/engines/common/evas_font_main.c
parentcbde1fd9ada3ad5b260621de9bb7c714d390fe1c (diff)
Evas textblock: Fixed rendering issues with small fonts.
GRIDFIT when we HINT, get the UNSCALED sizes otherwise. SVN revision: 72409
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_font_main.c4
1 files changed, 3 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 0208b8bfcf..5d6cf5ba24 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,9 @@ 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_Glyph_Get_CBox(fg->glyph, FT_GLYPH_BBOX_UNSCALED, 407 FT_Glyph_Get_CBox(fg->glyph,
408 ((fi->hinting == 0) ? FT_GLYPH_BBOX_UNSCALED :
409 FT_GLYPH_BBOX_GRIDFIT),
408 &outbox); 410 &outbox);
409 fg->width = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMax - outbox.xMin); 411 fg->width = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMax - outbox.xMin);
410 fg->x_bear = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMin); 412 fg->x_bear = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMin);