summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_shaper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c
index e07c0ca..b608b17 100644
--- a/libass/ass_shaper.c
+++ b/libass/ass_shaper.c
@@ -637,6 +637,11 @@ static void shape_harfbuzz(ASS_Shaper *shaper, GlyphInfo *glyphs, size_t len)
glyphs[i].skip = true;
for (i = 0; i < len; i++) {
+ if (glyphs[i].drawing_text) {
+ glyphs[i].skip = false;
+ continue;
+ }
+
int offset = i;
hb_font_t *font = get_hb_font(shaper, glyphs + offset);
int run_id = glyphs[offset].shape_run_id;