]> granicus.if.org Git - libass/commit
Use the "font encoding" property as a base direction hint
authorGrigori Goronzy <greg@blackbox>
Wed, 13 Jul 2011 22:01:11 +0000 (00:01 +0200)
committerGrigori Goronzy <greg@blackbox>
Fri, 15 Jul 2011 12:59:07 +0000 (14:59 +0200)
commitb1f12a86374015305347ce83cad96f2eb35b0212
treeeff4f4cd842ea291a887e41ec59af82f59c0859c
parent93c1573cca573024a93db82a712d724a79e8a6e6
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.
libass/ass_parse.c
libass/ass_render.c
libass/ass_render.h
libass/ass_shaper.c
libass/ass_shaper.h