forked from enlightenment/efl
Evas font: Fixed runtime emboldenment of bitmap fonts.
SVN revision: 73578
This commit is contained in:
parent
f8f0a494c2
commit
049b0a349d
|
@ -877,3 +877,6 @@
|
||||||
|
|
||||||
* Let Draw Text with viewport size instead of window size. When map is enabled then it should be rendered completely.
|
* 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.
|
||||||
|
|
|
@ -314,9 +314,7 @@ _font_slave_glyph_load(Font_Info *fi, unsigned int idx, unsigned int hint)
|
||||||
FT_Outline_Transform(&fsi->face->glyph->outline, &transform);
|
FT_Outline_Transform(&fsi->face->glyph->outline, &transform);
|
||||||
/* Embolden the outline of Glyph according to rundtime_rend. */
|
/* Embolden the outline of Glyph according to rundtime_rend. */
|
||||||
if (fi->runtime_rend & FONT_REND_WEIGHT)
|
if (fi->runtime_rend & FONT_REND_WEIGHT)
|
||||||
FT_Outline_Embolden(&fsi->face->glyph->outline,
|
FT_GlyphSlot_Embolden(fsi->face->glyph);
|
||||||
(fsi->face->size->metrics.x_ppem * 5 * 64) /
|
|
||||||
100);
|
|
||||||
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -422,8 +422,7 @@ evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt idx)
|
||||||
FT_Outline_Transform(&fi->src->ft.face->glyph->outline, &transform);
|
FT_Outline_Transform(&fi->src->ft.face->glyph->outline, &transform);
|
||||||
/* Embolden the outline of Glyph according to rundtime_rend. */
|
/* Embolden the outline of Glyph according to rundtime_rend. */
|
||||||
if (fi->runtime_rend & FONT_REND_WEIGHT)
|
if (fi->runtime_rend & FONT_REND_WEIGHT)
|
||||||
FT_Outline_Embolden(&fi->src->ft.face->glyph->outline,
|
FT_GlyphSlot_Embolden(fi->src->ft.face->glyph);
|
||||||
(fi->src->ft.face->size->metrics.x_ppem * 5 * 64) / 100);
|
|
||||||
|
|
||||||
fg = malloc(sizeof(struct _RGBA_Font_Glyph));
|
fg = malloc(sizeof(struct _RGBA_Font_Glyph));
|
||||||
if (!fg) return NULL;
|
if (!fg) return NULL;
|
||||||
|
|
Loading…
Reference in New Issue