[Bug 752147] glimagesink and textoverlay aren't friends on OS X
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jul 22 16:38:53 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=752147
--- Comment #7 from Julien Isorce <julien.isorce at gmail.com> ---
Since pango provides 2 backend on osx (QUARTZ named coretext and FREETYPE named
fontconfig) we could use the later which seems to work:
"#if defined(__APPLE__) (and probably &&
!defined(GSTREAMER_GLIB_COCOA_NSAPPLICATION)) fontmap =
pango_cairo_font_map_new_for_font_type (CAIRO_FONT_TYPE_FT)" instead of
"fontmap = pango_cairo_font_map_get_default ();" here
http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/ext/pango/gstbasetextoverlay.c#n319
See https://github.com/GNOME/pango/blob/master/pango/pangocairo-fontmap.c#L132
and https://github.com/GNOME/pango/blob/master/pango/pangocairo-fontmap.c#L74
Quick test:
PANGOCAIRO_BACKEND=fontconfig gst-launch-1.0 videotestsrc ! textoverlay
text="hello" font-desc="Verdana bold 80px" ! glimagesink
--
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