Bugfix: glyph cache depends on border width, because it contains outline_glyph

(glyph border obtained with FT_Glyph_StrokeBorder) since r23043.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23188 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2007-05-01 14:29:28 +00:00
parent 48adc611d5
commit 5221c54cb6
2 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,7 @@ typedef struct glyph_hash_key_s {
int bold, italic;
unsigned scale_x, scale_y; // 16.16
FT_Vector advance; // subpixel shift vector
unsigned outline; // border width, 16.16
} glyph_hash_key_t;
typedef struct glyph_hash_val_s {

View File

@ -1237,6 +1237,7 @@ static void get_outline_glyph(int symbol, glyph_info_t* info, FT_Vector* advance
key.advance = *advance;
key.bold = render_context.bold;
key.italic = render_context.italic;
key.outline = render_context.border * 0xFFFF;
info->glyph = info->outline_glyph = 0;