GNOME Bugzilla – Bug 526675
[cairotextoverlay] pango markup not parsed
Last modified: 2011-05-19 07:07:47 UTC
Please describe the problem: If we specify the text using the pango markup language, the language is not parsed, instead it is rendered as text on the "video". The same happens if the markup is passed in a buffer from a filesrc for example. Steps to reproduce: 1. gst-launch videotestsrc ! cairotextoverlay text="<span size=\"40000\" foreground=\"#FF0000\">Text</span>" ! ffmpegcolorspace ! glimagesink Actual results: The the entire markup line is rendered on the screen Expected results: The markup line should be parsed and the "Text" should be rendered as specified by the markup Does this happen every time? yes Other information:
cairotextoverlay has the "font-desc" property which should be used for pango font descriptions: gst-inspect cairotextoverlay ... font-desc : Pango font description of font to be used for rendering. See documentation of pango_font_description_from_string for syntax. That said, I'm not sure how you'd set the colour of your text with cairotextoverlay. Maybe a file another bug requesting enhancements to cairotextoverlay?
cairotextoverlay doesn't use Pango. textoverlay does.
Yes, that's why this bug should be fixed. Use textoverlay if you need Pango markup.