From 370fd5443a0a5818c2a92f8e6ef0a342a6c8102f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 25 Nov 2011 01:47:04 +0000 Subject: Add fontconfig configuration file to bundle. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3624 a436a847-0d15-0410-975c-d299462d15a1 --- osx/fonts.conf | 150 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/main.cpp | 3 ++ wscript | 2 +- 3 files changed, 154 insertions(+), 1 deletion(-) create mode 100644 osx/fonts.conf diff --git a/osx/fonts.conf b/osx/fonts.conf new file mode 100644 index 0000000..766e742 --- /dev/null +++ b/osx/fonts.conf @@ -0,0 +1,150 @@ + + + + + + + + + + ~/Library/Fonts + ~/.fonts + /Library/Fonts + /System/Library/Fonts + + + + ~/.fontconfig + + + + + mono + + + monospace + + + + + + + sans serif + + + sans-serif + + + + + + + sans + + + sans-serif + + + + + conf.d + + + + + 0x0020 + 0x00A0 + 0x00AD + 0x034F + 0x0600 + 0x0601 + 0x0602 + 0x0603 + 0x06DD + 0x070F + 0x115F + 0x1160 + 0x1680 + 0x17B4 + 0x17B5 + 0x180E + 0x2000 + 0x2001 + 0x2002 + 0x2003 + 0x2004 + 0x2005 + 0x2006 + 0x2007 + 0x2008 + 0x2009 + 0x200A + 0x200B + 0x200C + 0x200D + 0x200E + 0x200F + 0x2028 + 0x2029 + 0x202A + 0x202B + 0x202C + 0x202D + 0x202E + 0x202F + 0x205F + 0x2060 + 0x2061 + 0x2062 + 0x2063 + 0x206A + 0x206B + 0x206C + 0x206D + 0x206E + 0x206F + 0x3000 + 0x3164 + 0xFEFF + 0xFFA0 + 0xFFF9 + 0xFFFA + 0xFFFB + + + + 30 + + + + diff --git a/src/main.cpp b/src/main.cpp index 3c3f64f..2bbf322 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -49,6 +49,9 @@ set_bundle_environment() const std::string pangorc_path(bundle_path + "/Resources/pangorc"); setenv("PANGO_RC_FILE", pangorc_path.c_str(), 1); + const std::string pangorc_path(bundle_path + "/Resources/fonts.conf"); + setenv("FONTCONFIG_FILE", pangorc_path.c_str(), 1); + const char* path_c = getenv("PATH"); std::string path = "/opt/local/bin"; if (path_c) diff --git a/wscript b/wscript index a9cfacd..165b6f6 100644 --- a/wscript +++ b/wscript @@ -180,7 +180,7 @@ def build(bld): target = out_base + 'Resources/Patchage.icns') # Gtk/Pango/etc configuration files - for i in ['pangorc', 'pango.modules', 'gtkrc']: + for i in ['pangorc', 'pango.modules', 'gtkrc', 'fonts.conf']: bld(rule = 'cp ${SRC} ${TGT}', source = 'osx/' + i, target = out_base + 'Resources/' + i) -- cgit v1.2.1