From fc97f85383958b6a11bbc5f9e31afaea06b04dce Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Sun, 18 Oct 2020 02:07:01 +0300 Subject: shaper: handle U+FFFC characters that occur in text U+FFFC can not only come from drawings but also be actually contained in the source text. In that case, handle it like any other character. This doesn't distinguish source-text U+FFFC from drawings whose strdup failed. But the whole rest of the pipeline treats those drawings as plain U+FFFC characters, too. --- libass/ass_shaper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass') diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c index ed557a0..d9fd590 100644 --- a/libass/ass_shaper.c +++ b/libass/ass_shaper.c @@ -781,7 +781,7 @@ void ass_shaper_find_runs(ASS_Shaper *shaper, ASS_Renderer *render_priv, GlyphInfo *last = glyphs + i - 1; GlyphInfo *info = glyphs + i; // skip drawings - if (info->symbol == 0xfffc) + if (info->drawing_text) continue; // set size and get glyph index ass_font_get_index(render_priv->fontselect, info->font, -- cgit v1.2.3