diff options
Diffstat (limited to 'libass/ass_shaper.h')
-rw-r--r-- | libass/ass_shaper.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libass/ass_shaper.h b/libass/ass_shaper.h index d12870f..9ff96e7 100644 --- a/libass/ass_shaper.h +++ b/libass/ass_shaper.h @@ -25,6 +25,10 @@ typedef struct ass_shaper ASS_Shaper; #include <stdbool.h> #include "ass_render.h" +#if FRIBIDI_MAJOR_VERSION >= 1 +#define USE_FRIBIDI_EX_API +#endif + void ass_shaper_info(ASS_Library *lib); ASS_Shaper *ass_shaper_new(void); void ass_shaper_free(ASS_Shaper *shaper); @@ -35,6 +39,9 @@ void ass_shaper_find_runs(ASS_Shaper *shaper, ASS_Renderer *render_priv, 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); +#ifdef USE_FRIBIDI_EX_API +void ass_shaper_set_bidi_brackets(ASS_Shaper *shaper, bool match_brackets); +#endif int 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); |