mirror of https://github.com/mpv-player/mpv
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:
parent
48adc611d5
commit
5221c54cb6
|
@ -66,6 +66,7 @@ typedef struct glyph_hash_key_s {
|
||||||
int bold, italic;
|
int bold, italic;
|
||||||
unsigned scale_x, scale_y; // 16.16
|
unsigned scale_x, scale_y; // 16.16
|
||||||
FT_Vector advance; // subpixel shift vector
|
FT_Vector advance; // subpixel shift vector
|
||||||
|
unsigned outline; // border width, 16.16
|
||||||
} glyph_hash_key_t;
|
} glyph_hash_key_t;
|
||||||
|
|
||||||
typedef struct glyph_hash_val_s {
|
typedef struct glyph_hash_val_s {
|
||||||
|
|
|
@ -1237,6 +1237,7 @@ static void get_outline_glyph(int symbol, glyph_info_t* info, FT_Vector* advance
|
||||||
key.advance = *advance;
|
key.advance = *advance;
|
||||||
key.bold = render_context.bold;
|
key.bold = render_context.bold;
|
||||||
key.italic = render_context.italic;
|
key.italic = render_context.italic;
|
||||||
|
key.outline = render_context.border * 0xFFFF;
|
||||||
|
|
||||||
info->glyph = info->outline_glyph = 0;
|
info->glyph = info->outline_glyph = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue