Modify FontConfig call to allow italic/bold synthesis.
[dcpomatic.git] / src / lib / render_text.cc
index 7ae7d91524ddd3d6a03b2eb90cac8d4f8507172f..fafed3d821879c8cfe7a4b9369ea5a4eddd5d425 100644 (file)
@@ -158,7 +158,7 @@ render_line (list<StringText> subtitles, list<shared_ptr<Font> > fonts, dcp::Siz
        Cairo::RefPtr<Cairo::Context> context = Cairo::Context::create (surface);
 
        if (!fc_config) {
-               fc_config = FcConfigCreate ();
+               fc_config = FcInitLoadConfig ();
        }
 
        FontFiles font_files;