From e54c123d5a08b6212533ddcced2cb1a50fa3d2b2 Mon Sep 17 00:00:00 2001 From: Dan Oscarsson Date: Wed, 5 Oct 2016 13:52:47 +0200 Subject: 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'libass/ass.c') diff --git a/libass/ass.c b/libass/ass.c index f42fd4b..1cb0d4c 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -449,6 +449,7 @@ void ass_process_force_style(ASS_Track *track) FPVAL(Angle) INTVAL(BorderStyle) INTVAL(Alignment) + INTVAL(Justify) INTVAL(MarginL) INTVAL(MarginR) INTVAL(MarginV) -- cgit v1.2.3