summaryrefslogtreecommitdiffstats
path: root/libass/ass_shaper.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-07-15 00:49:50 +0200
committerGrigori Goronzy <greg@blackbox>2011-07-15 15:00:14 +0200
commitdd340a43024966d284f73cce0db9aa20e78cdbdd (patch)
treec42f55785e7efa7c665caf3a8f9da736e5b4a960 /libass/ass_shaper.h
parentfa291a3269ee0fa76a17c976439a900b29084314 (diff)
downloadlibass-dd340a43024966d284f73cce0db9aa20e78cdbdd.tar.bz2
libass-dd340a43024966d284f73cce0db9aa20e78cdbdd.tar.xz
Cache HarfBuzz fonts
Add a new opaque data structure to store shaper-specific font data in an ASS_Font. At the moment, this is used for caching HarfBuzz fonts, to reduce allocation and font initialization overhead.
Diffstat (limited to 'libass/ass_shaper.h')
-rw-r--r--libass/ass_shaper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libass/ass_shaper.h b/libass/ass_shaper.h
index a5bb462..894822d 100644
--- a/libass/ass_shaper.h
+++ b/libass/ass_shaper.h
@@ -36,4 +36,6 @@ void ass_shaper_cleanup(ASS_Shaper *shaper, TextInfo *text_info);
FriBidiStrIndex *ass_shaper_reorder(ASS_Shaper *shaper, TextInfo *text_info);
FriBidiParType resolve_base_direction(int font_encoding);
+void ass_shaper_font_data_free(ASS_ShaperFontData *priv);
+
#endif