From f1c9032ddf5eba1241d9616656b4c36bc4043283 Mon Sep 17 00:00:00 2001 From: Dan Oscarsson Date: Wed, 1 Feb 2017 13:19:09 +0100 Subject: sub: add justify of subtitles To make it easier for the eyes, multi line subtitles should be left justified (for most languages). This adds an option to define how subtitles are to be justified inpendently of how they are aligned. Also add option to enable --sub-justify to be applied on ASS subtitles. --- sub/osd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sub/osd.c') diff --git a/sub/osd.c b/sub/osd.c index bf6233a0b1..a35380d99f 100644 --- a/sub/osd.c +++ b/sub/osd.c @@ -62,6 +62,8 @@ static const m_option_t style_opts[] = { OPT_FLOATRANGE("blur", blur, 0, 0, 20), OPT_FLAG("bold", bold, 0), OPT_FLAG("italic", italic, 0), + OPT_CHOICE("justify", justify, 0, + ({"auto", 0}, {"left", 1}, {"center", 2}, {"right", 3})), {0} }; -- cgit v1.2.3