[Bug 728636] textoverlay: cuts off right edge italicised text

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jul 22 07:15:17 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=728636

Nicolas Dufresne (stormer) <nicolas.dufresne at collabora.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nicolas.dufresne at collabora.
                   |                            |co.uk

--- Comment #10 from Nicolas Dufresne (stormer) <nicolas.dufresne at collabora.co.uk> ---
Ok, I guess it's just more complicated then that. Just added some debug log to
print the extents.

gst-launch-1.0 videotestsrc ! video/x-raw,width=1280,height=720 ! textoverlay
font-desc='Bitstream Charter, 72' text='<b><i>g</i></b>' ! ximagesink

Gives me, Extents of "<b><i>g</i></b>" is ink (-3, 47) 55x68 and logical (0, 0)
50x117

Regardless how big you make the surface, the left part of the g will always be
clipped unless you also translate the matrix the opposite way. Just doing that
miss-align the text, so we have to compensate when doing the placement.
ink_rect.width though always seems sufficient to fit the text.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list