]> granicus.if.org Git - libass/commit
Add text justification
authorDan Oscarsson <DanOscarsson@users.noreply.github.com>
Wed, 5 Oct 2016 11:52:47 +0000 (13:52 +0200)
committerwm4 <wm4@nowhere>
Sat, 12 Nov 2016 17:42:55 +0000 (18:42 +0100)
commite54c123d5a08b6212533ddcced2cb1a50fa3d2b2
treeb6132f98f88924239d8f5c6fcb4cd2d96afd5d49
parent35dc4dd0e14e3afb4a2c7e319a3f4110e20c7cf2
Add text justification

Subtitle recommendations often include that multi line
subtitles should be left justified as this is easier for
the eyes. This is also the standard used by several television
companies.

This add the possibility to define how subtitles are to
be justified, independently of where they are aligned.
The most common way could be to set justify to left, and have
alignment to center. But you can, for example, have alignment
to left and justify to center, giving subtitles to the left but
justifed on the center (instead of normal left justified).
Using justify right and alignment of center, might be good
choice for Arabic.

If justify is not defined, all works like before.
If justify is defined, subtitles are aligned as defined
by alignment and justified as defined by justify.

ASS is not extended by this, justify can only be defined
by setting Justify to wanted justification.
libass/ass.c
libass/ass.h
libass/ass_render.c
libass/ass_render.h
libass/ass_types.h