Use freetype for OS X font rendering. v2.13.115
authorCarl Hetherington <cth@carlh.net>
Sat, 9 Feb 2019 00:30:26 +0000 (00:30 +0000)
committerCarl Hetherington <cth@carlh.net>
Sat, 9 Feb 2019 00:30:26 +0000 (00:30 +0000)
src/lib/util.cc

index fe8b193..544045b 100644 (file)
@@ -366,6 +366,11 @@ dcpomatic_setup ()
        putenv (String::compose("FONTCONFIG_PATH=%1", shared_path().string()).c_str());
 #endif
 
+#ifdef DCPOMATIC_OSX
+       setenv ("PANGOCAIRO_BACKEND", "fontconfig", 1);
+       setenv ("FONTCONFIG_PATH", shared_path().string().c_str(), 1);
+#endif
+
        Pango::init ();
        dcp::init ();