summaryrefslogtreecommitdiff
path: root/gtk2_ardour/main.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-03-08 03:39:58 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-03-08 03:39:58 +0000
commit5907f3eb036bb0252e61f332c155eddd706465aa (patch)
tree9375ad7ec0847961c40335a73f8a8b5207e6f412 /gtk2_ardour/main.cc
parent845d2e0f3b40fd3a1f9164b959caf6759e5ecc70 (diff)
potential fix, part two, for Tiger-based font issues. this also switches things so that building on Lion or Mountain Lion sets MAC_OS_VERSION_MIN_REQUIRED to 1070, to avoid legacy stuff
git-svn-id: svn://localhost/ardour2/branches/3.0@14179 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r--gtk2_ardour/main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc
index 850b1141d1..a5973b03b3 100644
--- a/gtk2_ardour/main.cc
+++ b/gtk2_ardour/main.cc
@@ -222,6 +222,7 @@ fixup_bundle_environment (int, char* [])
}
static void load_custom_fonts() {
+#if MAC_OS_X_VERSION_MIN_REQUIRED > 1060
std::string ardour_mono_file;
if (!find_file_in_search_path (ardour_data_search_path(), "ArdourMono.ttf", ardour_mono_file)) {
@@ -239,6 +240,9 @@ static void load_custom_fonts() {
if (CTFontManagerRegisterFontsForURL(fontURL, kCTFontManagerScopeProcess, &error) != true) {
cerr << _("Cannot load ArdourMono TrueType font.") << endl;
}
+#else
+ /* no real usable API for this on OS X 10.5 or below */
+#endif
}
#else