diff options
Diffstat (limited to 'libass/ass_shaper.c')
-rw-r--r-- | libass/ass_shaper.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c index 5f24c5a..657885b 100644 --- a/libass/ass_shaper.c +++ b/libass/ass_shaper.c @@ -121,6 +121,13 @@ void ass_shaper_free(ASS_Shaper *shaper) free(shaper); } +void ass_shaper_empty_cache(ASS_Shaper *shaper) +{ +#ifdef CONFIG_HARFBUZZ + ass_cache_empty(shaper->metrics_cache); +#endif +} + void ass_shaper_font_data_free(ASS_ShaperFontData *priv) { #ifdef CONFIG_HARFBUZZ |