summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_font_main.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-05-29 14:43:10 +0000
committerTom Hacohen <tom@stosb.com>2012-05-29 14:43:10 +0000
commitd7f811fe8ffc4196d31a832220939cdf7c63c37d (patch)
treea91867492ad3cc39de7623942c49e7ca8a9b57ac /legacy/evas/src/lib/engines/common/evas_font_main.c
parentb3e92d38b0363adddaa24d94402e93e030115a18 (diff)
Evas font-draw: Use bitmap offset in the glyph when drawing.
SVN revision: 71505
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_font_main.c11
1 files changed, 7 insertions, 4 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 db413af7d0..1bbf5c3d04 100644
--- a/legacy/evas/src/lib/engines/common/evas_font_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_font_main.c
@@ -390,10 +390,13 @@ evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt idx)
390 if (fi->fash) _fash_gl_add(fi->fash, idx, (void *)(-1)); 390 if (fi->fash) _fash_gl_add(fi->fash, idx, (void *)(-1));
391 return NULL; 391 return NULL;
392 } 392 }
393 fg->width = EVAS_FONT_ROUND_26_6_TO_INT( 393
394 fi->src->ft.face->glyph->metrics.width); 394 {
395 fg->x_bear = EVAS_FONT_ROUND_26_6_TO_INT( 395 FT_BBox outbox;
396 fi->src->ft.face->glyph->metrics.horiBearingX); 396 FT_Outline_Get_CBox(&fi->src->ft.face->glyph->outline, &outbox);
397 fg->width = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMax - outbox.xMin);
398 fg->x_bear = EVAS_FONT_ROUND_26_6_TO_INT(outbox.xMin);
399 }
397 400
398 fg->index = idx; 401 fg->index = idx;
399 fg->fi = fi; 402 fg->fi = fi;