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 | f013553a39da1fe815e4788de05bd9cedd8f6a98 (patch) | |
tree | 4aa72dc9c4c5867ce2dee8eae860314a27a5ad82 /libass/ass_font.h | |
parent | ae47f49776d57148a7715fb8f9629577741812a4 (diff) | |
download | libass-f013553a39da1fe815e4788de05bd9cedd8f6a98.tar.bz2 libass-f013553a39da1fe815e4788de05bd9cedd8f6a98.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 7c3a50d..5d986e9 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; |