]> granicus.if.org Git - libass/commit
Keep reselected fonts in an array, adding new ones to the end. Glyph
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 16 Dec 2006 19:34:00 +0000 (19:34 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 16 Dec 2006 19:34:00 +0000 (19:34 +0000)
commitf013553a39da1fe815e4788de05bd9cedd8f6a98
tree4aa72dc9c4c5867ce2dee8eae860314a27a5ad82
parentae47f49776d57148a7715fb8f9629577741812a4
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
libass/ass_font.c
libass/ass_font.h
libass/ass_render.c