Windows: fonts are messed up
I am using a GStreamer overlay element with pango to render text on my video frames.
Steps to reproduce the issue:
- launch thread, which starts GLib event loop and plays GStreamer pipeline
- text rendering is correct
- stop pipeline and join thread
- launch second thread, which starts GLib event loop and plays pipeline
- Now the text is messed up, with the following warnings:
Pango-WARNING **: 19:23:23.505: couldn't load font "serif Bold Not-Rotated 42.666015625px", falling back to "Sans Bold Not-Rotated 42.666015625px", expect ugly output.
Pango-WARNING **: 19:23:23.505: couldn't load font "Sans Bold Not-Rotated 42.666015625px", falling back to "Sans Not-Rotated 42.666015625px", expect ugly output.
Pango-WARNING **: 19:23:23.505: All font fallbacks failed!!!!
and the font is just tiny boxes.