summaryrefslogtreecommitdiffstats
path: root/libass/ass.h
diff options
context:
space:
mode:
authorDan Oscarsson <DanOscarsson@users.noreply.github.com>2016-10-05 13:52:47 +0200
committerwm4 <wm4@nowhere>2016-11-12 18:42:55 +0100
commite54c123d5a08b6212533ddcced2cb1a50fa3d2b2 (patch)
treeb6132f98f88924239d8f5c6fcb4cd2d96afd5d49 /libass/ass.h
parent35dc4dd0e14e3afb4a2c7e319a3f4110e20c7cf2 (diff)
downloadlibass-e54c123d5a08b6212533ddcced2cb1a50fa3d2b2.tar.bz2
libass-e54c123d5a08b6212533ddcced2cb1a50fa3d2b2.tar.xz
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.
Diffstat (limited to 'libass/ass.h')
-rw-r--r--libass/ass.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libass/ass.h b/libass/ass.h
index 24a4618..912a7a1 100644
--- a/libass/ass.h
+++ b/libass/ass.h
@@ -166,6 +166,10 @@ typedef enum {
* resolution given by the ASS_Track.
*/
ASS_OVERRIDE_FULL_STYLE = 1 << 9,
+ /**
+ * On dialogue events override: Justify
+ */
+ ASS_OVERRIDE_BIT_JUSTIFY = 1 << 10,
} ASS_OverrideBits;
/**