Redesign horizontal alignment calculations for bidi
commitcd29011665608d11788000e7269ce886892cf4cd
authorGrigori Goronzy <greg@blackbox>
Sat, 9 Jul 2011 20:04:01 +0000 (9 22:04 +0200)
committerGrigori Goronzy <greg@blackbox>
Sat, 9 Jul 2011 20:06:19 +0000 (9 22:06 +0200)
tree4de952c311d4c7debe194b586df2dc9dafb4b4ab
parent2e65ef93b51ce2577d19b93009c04fbc80df1ed3
Redesign horizontal alignment calculations for bidi

The line alignment code determined the first and last glyph in a
line and calculated the distance from that. This is rather arcane
and doesn't easily work with bidi. Redesign the algorithm to simply
add together all individual character widths instead.
libass/ass_render.c