summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-07-14 00:01:11 +0200
committerGrigori Goronzy <greg@blackbox>2011-07-15 14:59:07 +0200
commitb1f12a86374015305347ce83cad96f2eb35b0212 (patch)
treeeff4f4cd842ea291a887e41ec59af82f59c0859c /libass/ass_render.h
parent93c1573cca573024a93db82a712d724a79e8a6e6 (diff)
downloadlibass-b1f12a86374015305347ce83cad96f2eb35b0212.tar.bz2
libass-b1f12a86374015305347ce83cad96f2eb35b0212.tar.xz
Use the "font encoding" property as a base direction hint
ASS specifies a "font encoding", both in the styles as well as with the \fe override tag. This font encoding is very Windows-specific and libass doesn't use it for charmap matching or anything like that. However, it can be useful for hinting the base direction of text. Make Hebrew and Arabic encodings switch to RTL base direction, other languages to LTR and use neutral base direction for the autodetect setting.
Diffstat (limited to 'libass/ass_render.h')
-rw-r--r--libass/ass_render.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h
index 1c49823..05c4974 100644
--- a/libass/ass_render.h
+++ b/libass/ass_render.h
@@ -224,6 +224,7 @@ typedef struct {
unsigned italic;
int treat_family_as_pattern;
int wrap_style;
+ int font_encoding;
} RenderContext;
typedef struct {