gstreamer/ext/ttml
Chris Bass f28df30a8b ttmlrender: apply correct line height to blocks with multiple text sizes
In TTML, the height of every line in a block is determined by lineHeight
and fontSize style attributes, and should be the same for each line in
that block, regardless of whether different sized text appears on
different lines. Currently, a single PangoLayout is used to lay out all
the text in a block; however, pango will vary the line height in a
layout depending on the size of text used in each line, which is not
compliant with TTML.

This patch makes ttmlrender lay out the lines in a block itself, rather
than using a PangoLayout to do the work. The code still uses a
PangoLayout to render the text of each element, but the overall layout
of the text in a block is now controlled by ttmlrender itself. By doing
this, ttmlrender is able to ensure that the height of each line in a
block is correct.

https://bugzilla.gnome.org/show_bug.cgi?id=780402
2017-04-09 10:42:08 +03:00
..
gstttmlparse.c ttmlparse: Transform caps event 2016-12-12 10:57:29 +02:00
gstttmlparse.h ttml: Add plugin that supports TTML subtitles 2016-11-01 20:46:46 +02:00
gstttmlplugin.c ttml: Add plugin that supports TTML subtitles 2016-11-01 20:46:46 +02:00
gstttmlrender.c ttmlrender: apply correct line height to blocks with multiple text sizes 2017-04-09 10:42:08 +03:00
gstttmlrender.h ttmlrender: apply correct line height to blocks with multiple text sizes 2017-04-09 10:42:08 +03:00
Makefile.am ttml: Link with -lm for round() 2017-01-12 15:39:13 +02:00
meson.build meson/ttml: Add missing math library dependency 2016-11-30 22:40:45 -05:00
subtitle.c ttml: add refcounting to GstSubtitleStlyeSet type 2017-04-09 10:42:08 +03:00
subtitle.h ttml: add refcounting to GstSubtitleStlyeSet type 2017-04-09 10:42:08 +03:00
subtitlemeta.c ttml: Add plugin that supports TTML subtitles 2016-11-01 20:46:46 +02:00
subtitlemeta.h ttml: Add plugin that supports TTML subtitles 2016-11-01 20:46:46 +02:00
ttmlparse.c ttml: Replace assertions 2017-03-15 13:28:36 +02:00
ttmlparse.h ttml: Add plugin that supports TTML subtitles 2016-11-01 20:46:46 +02:00