summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.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_render.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_render.h')
-rw-r--r--libass/ass_render.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h
index 6e3963e..fad554b 100644
--- a/libass/ass_render.h
+++ b/libass/ass_render.h
@@ -220,6 +220,7 @@ typedef struct {
FT_Stroker stroker;
int stroker_radius; // last stroker radius, for caching stroker objects
int alignment; // alignment overrides go here; if zero, style value will be used
+ int justify; // justify instructions
double frx, fry, frz;
double fax, fay; // text shearing
enum {