basetextoverlay: Use the extents rectangle for positioning
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Thu, 23 Jul 2015 19:28:42 +0000 (15:28 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Fri, 24 Jul 2015 20:43:59 +0000 (16:43 -0400)
commitd4759f05f17556984f392d2960b4c920ce053b94
tree69b14db3bf8f7f8f224faf6c8cade2a0b38455e3
parent7569a2e932bc208000aff5967b87296ca2dd6f5d
basetextoverlay: Use the extents rectangle for positioning

the extents rectangle is what you need to know to properly position
a buffer that has been rendered in a surface of the ink rectangle
size. This patch make the placement on par with the placement we had
before without having to over allocate.

This patch also enable placement for vertical rendering. Note that
the halginement, valighment and line-alignment default are set to
the previous default when this property is set. This is for backward
compatibility, you can change the value after setting vertical render.

https://bugzilla.gnome.org/show_bug.cgi?id=728636
ext/pango/gstbasetextoverlay.c
ext/pango/gstbasetextoverlay.h