diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-16 19:34:00 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-16 19:34:00 +0000 |
commit | d6ffde2900fcb6a283f72c3947ed2bbc9f59555a (patch) | |
tree | f41d3323705f208ccd9f948db82020da24192652 /libass/ass_font.h | |
parent | eba0f2e158ee1740c9cc76bd952aa335eb29c6ac (diff) | |
download | mpv-d6ffde2900fcb6a283f72c3947ed2bbc9f59555a.tar.bz2 mpv-d6ffde2900fcb6a283f72c3947ed2bbc9f59555a.tar.xz |
Keep reselected fonts in an array, adding new ones to the end. Glyph
lookup prefers earlier opened fonts.
This way glyph lookup is stable, which means that:
- cache cleanup is never required after font reselecting;
- a single unrecognized char won't change the appearance of all the others.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21635 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_font.h')
-rw-r--r-- | libass/ass_font.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libass/ass_font.h b/libass/ass_font.h index 7c3a50d347..5d986e9f0b 100644 --- a/libass/ass_font.h +++ b/libass/ass_font.h @@ -31,10 +31,13 @@ typedef struct ass_font_desc_s { unsigned italic; } ass_font_desc_t; +#define ASS_FONT_MAX_FACES 10 + typedef struct ass_font_s { ass_font_desc_t desc; FT_Library ftlibrary; - FT_Face face; + FT_Face faces[ASS_FONT_MAX_FACES]; + int n_faces; FT_Matrix m; // current transformation FT_Vector v; // current shift int size; |