moron
[ardour.git] / gtk2_ardour / main.cc
index 70df4c760366ab05e6b75e275c3c9f0c32bce671..9147941242aa38be76d0499f5a9be2ee0d4d33e8 100644 (file)
@@ -370,13 +370,16 @@ fixup_bundle_environment (int /*argc*/, char* argv[])
 
        if (Glib::file_test ("/etc/fonts/fonts.conf", Glib::FILE_TEST_EXISTS)) {
                setenv ("FONTCONFIG_FILE", "/etc/fonts/fonts.conf", 1);
+               setenv ("FONTCONFIG_PATH", "/etc/fonts", 1);
        } else {
                /* use the one included in the bundle */
                
                path = Glib::build_filename (dir_path, "etc/fonts/fonts.conf");
                setenv ("FONTCONFIG_FILE", path.c_str(), 1);
+               path = Glib::build_filename (dir_path, "etc/fonts");
+               setenv ("FONTCONFIG_PATH", "/etc/fonts", 1);
        }
-       
+
        /* write a pango.rc file and tell pango to use it. we'd love
           to put this into the Ardour.app bundle and leave it there,
           but the user may not have write permission. so ...