summaryrefslogtreecommitdiffstats
path: root/libass/ass_shaper.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-08-08 00:22:32 +0200
committerGrigori Goronzy <greg@blackbox>2011-08-08 00:22:32 +0200
commit0d391f67d3d1c87cd8e8cff907bd7c6b3b1f9cd8 (patch)
tree8a7b2c0d04cb490c94c9b45be9cafeaa5fc19788 /libass/ass_shaper.h
parent37fe952c045963c8c86bc630b6a673df9d728dcc (diff)
downloadlibass-0d391f67d3d1c87cd8e8cff907bd7c6b3b1f9cd8.tar.bz2
libass-0d391f67d3d1c87cd8e8cff907bd7c6b3b1f9cd8.tar.xz
Runtime shaper selection
Add an API call, ass_set_shaper, and infrastructure to make shapers selectable at runtime. Currently, this allows to switch between two shapers: a SIMPLE shaper that maps to FriBidi and a COMPLEX shaper that maps to HarfBuzz.
Diffstat (limited to 'libass/ass_shaper.h')
-rw-r--r--libass/ass_shaper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_shaper.h b/libass/ass_shaper.h
index 7e8bcc6..81499dd 100644
--- a/libass/ass_shaper.h
+++ b/libass/ass_shaper.h
@@ -32,6 +32,7 @@ void ass_shaper_find_runs(ASS_Shaper *shaper, ASS_Renderer *render_priv,
GlyphInfo *glyphs, size_t len);
void ass_shaper_set_base_direction(ASS_Shaper *shaper, FriBidiParType dir);
void ass_shaper_set_language(ASS_Shaper *shaper, const char *code);
+void ass_shaper_set_level(ASS_Shaper *shaper, ASS_ShapingLevel level);
void ass_shaper_shape(ASS_Shaper *shaper, TextInfo *text_info);
void ass_shaper_cleanup(ASS_Shaper *shaper, TextInfo *text_info);
FriBidiStrIndex *ass_shaper_reorder(ASS_Shaper *shaper, TextInfo *text_info);