+ // we should at least set ARDOUR_DATA_PATH to prevent the warning message.
+ // setting a FONTCONFIG_FILE won't hurt either see bundle_env_msvc.cc
+ // (pangocairo prefers the windows gdi backend unless PANGOCAIRO_BACKEND=fc is set)
+
+ // Unset GTK_RC_FILES so that only ardour specific files are loaded
+ Glib::unsetenv ("GTK_RC_FILES");
+}
+
+static __cdecl void unload_custom_fonts() {
+ std::string ardour_mono_file;
+ if (!find_file (ardour_data_search_path(), "ArdourMono.ttf", ardour_mono_file)) {
+ return;
+ }
+ RemoveFontResource(ardour_mono_file.c_str());