summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.c
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-16 19:34:00 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-16 19:34:00 +0000
commitd6ffde2900fcb6a283f72c3947ed2bbc9f59555a (patch)
treef41d3323705f208ccd9f948db82020da24192652 /libass/ass_render.c
parenteba0f2e158ee1740c9cc76bd952aa335eb29c6ac (diff)
downloadmpv-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_render.c')
-rw-r--r--libass/ass_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 9204442c9d..6c8cd84825 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -595,7 +595,7 @@ static void change_border(double border)
#if (FREETYPE_MAJOR > 2) || ((FREETYPE_MAJOR == 2) && (FREETYPE_MINOR > 1))
error = FT_Stroker_New( ass_renderer->ftlibrary, &render_context.stroker );
#else // < 2.2
- error = FT_Stroker_New( render_context.font->face->memory, &render_context.stroker );
+ error = FT_Stroker_New( render_context.font->faces[0]->memory, &render_context.stroker );
#endif
if (error) {
mp_msg(MSGT_ASS, MSGL_V, "failed to get stroker\n");