After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 526675 - [cairotextoverlay] pango markup not parsed
[cairotextoverlay] pango markup not parsed
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.5
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-07 08:39 UTC by Dejan Sakelšak
Modified: 2011-05-19 07:07 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Dejan Sakelšak 2008-04-07 08:39:58 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:
Comment 1 Tristan Matthews 2010-09-23 13:12:03 UTC
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?
Comment 2 Vincent Penquerc'h 2011-01-24 11:00:33 UTC
cairotextoverlay doesn't use Pango.
textoverlay does.
Comment 3 Sebastian Dröge (slomo) 2011-05-19 07:07:47 UTC
Yes, that's why this bug should be fixed. Use textoverlay if you need Pango markup.