git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@73578
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
* Let Draw Text with viewport size instead of window size. When map is enabled then it should be rendered completely.
+2012-07-11 Tom Hacohen (TAsn)
+
+ * Fixed runtime emboldenment with bitmap fonts.
FT_Outline_Transform(&fsi->face->glyph->outline, &transform);
/* Embolden the outline of Glyph according to rundtime_rend. */
if (fi->runtime_rend & FONT_REND_WEIGHT)
- FT_Outline_Embolden(&fsi->face->glyph->outline,
- (fsi->face->size->metrics.x_ppem * 5 * 64) /
- 100);
+ FT_GlyphSlot_Embolden(fsi->face->glyph);
return EINA_TRUE;
}
FT_Outline_Transform(&fi->src->ft.face->glyph->outline, &transform);
/* Embolden the outline of Glyph according to rundtime_rend. */
if (fi->runtime_rend & FONT_REND_WEIGHT)
- FT_Outline_Embolden(&fi->src->ft.face->glyph->outline,
- (fi->src->ft.face->size->metrics.x_ppem * 5 * 64) / 100);
+ FT_GlyphSlot_Embolden(fi->src->ft.face->glyph);
fg = malloc(sizeof(struct _RGBA_Font_Glyph));
if (!fg) return NULL;