| 1 | #!/bin/sh |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | : ${WHICHDLL:=which} |
| 6 | : ${GTKDIR:=/gtk} |
| 7 | : ${CP:=cp} |
| 8 | : ${CAT:=cat} |
| 9 | : ${MKDIR:=mkdir -p} |
| 10 | : ${INSTALLDIR:=.} |
| 11 | |
| 12 | for DLL in \ |
| 13 | freetype6.dll \ |
| 14 | intl.dll \ |
| 15 | libatk-1.0-0.dll \ |
| 16 | libcairo-2.dll \ |
| 17 | libexpat-1.dll \ |
| 18 | libfontconfig-1.dll \ |
| 19 | libgdkglext-win32-1.0-0.dll \ |
| 20 | libgdk_pixbuf-2.0-0.dll \ |
| 21 | libgdk-win32-2.0-0.dll \ |
| 22 | libgio-2.0-0.dll \ |
| 23 | libglib-2.0-0.dll \ |
| 24 | libgmodule-2.0-0.dll \ |
| 25 | libgobject-2.0-0.dll \ |
| 26 | libgthread-2.0-0.dll \ |
| 27 | libgtkglext-win32-1.0-0.dll \ |
| 28 | libgtk-win32-2.0-0.dll \ |
| 29 | libjpeg-8.dll \ |
| 30 | libpango-1.0-0.dll \ |
| 31 | libpangocairo-1.0-0.dll \ |
| 32 | libpangoft2-1.0-0.dll \ |
| 33 | libpangowin32-1.0-0.dll \ |
| 34 | libpng14-14.dll \ |
| 35 | libxml2-2.dll \ |
| 36 | zlib1.dll \ |
| 37 | libgcc_s_sjlj-1.dll \ |
| 38 | libstdc++-6.dll \ |
| 39 | ; do |
| 40 | $CP "`$WHICHDLL $DLL`" $INSTALLDIR/ |
| 41 | done |
| 42 | |
| 43 | $MKDIR $INSTALLDIR/etc/fonts |
| 44 | $CAT > $INSTALLDIR/etc/fonts/fonts.conf <<EOF |
| 45 | <?xml version="1.0"?> |
| 46 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> |
| 47 | <!-- /etc/fonts/fonts.conf file to configure system font access --> |
| 48 | <fontconfig> |
| 49 | |
| 50 | <!-- |
| 51 | DO NOT EDIT THIS FILE. |
| 52 | IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED. |
| 53 | LOCAL CHANGES BELONG IN 'local.conf'. |
| 54 | |
| 55 | The intent of this standard configuration file is to be adequate for |
| 56 | most environments. If you have a reasonably normal environment and |
| 57 | have found problems with this configuration, they are probably |
| 58 | things that others will also want fixed. Please submit any |
| 59 | problems to the fontconfig bugzilla system located at fontconfig.org |
| 60 | |
| 61 | Note that the normal 'make install' procedure for fontconfig is to |
| 62 | replace any existing fonts.conf file with the new version. Place |
| 63 | any local customizations in local.conf which this file references. |
| 64 | |
| 65 | Keith Packard |
| 66 | --> |
| 67 | |
| 68 | <!-- Font directory list --> |
| 69 | |
| 70 | <dir>WINDOWSFONTDIR</dir> |
| 71 | |
| 72 | <dir>~/.fonts</dir> |
| 73 | |
| 74 | <!-- |
| 75 | Accept deprecated 'mono' alias, replacing it with 'monospace' |
| 76 | --> |
| 77 | <match target="pattern"> |
| 78 | <test qual="any" name="family"> |
| 79 | <string>mono</string> |
| 80 | </test> |
| 81 | <edit name="family" mode="assign"> |
| 82 | <string>monospace</string> |
| 83 | </edit> |
| 84 | </match> |
| 85 | |
| 86 | <!-- |
| 87 | Accept alternate 'sans serif' spelling, replacing it with 'sans-serif' |
| 88 | --> |
| 89 | <match target="pattern"> |
| 90 | <test qual="any" name="family"> |
| 91 | <string>sans serif</string> |
| 92 | </test> |
| 93 | <edit name="family" mode="assign"> |
| 94 | <string>sans-serif</string> |
| 95 | </edit> |
| 96 | </match> |
| 97 | |
| 98 | <!-- |
| 99 | Accept deprecated 'sans' alias, replacing it with 'sans-serif' |
| 100 | --> |
| 101 | <match target="pattern"> |
| 102 | <test qual="any" name="family"> |
| 103 | <string>sans</string> |
| 104 | </test> |
| 105 | <edit name="family" mode="assign"> |
| 106 | <string>sans-serif</string> |
| 107 | </edit> |
| 108 | </match> |
| 109 | |
| 110 | <!-- |
| 111 | Load local system customization file |
| 112 | --> |
| 113 | <include ignore_missing="yes">conf.d</include> |
| 114 | |
| 115 | <!-- Font cache directory list --> |
| 116 | |
| 117 | <cachedir>WINDOWSTEMPDIR_FONTCONFIG_CACHE</cachedir> |
| 118 | <cachedir>~/.fontconfig</cachedir> |
| 119 | |
| 120 | <config> |
| 121 | <!-- |
| 122 | These are the default Unicode chars that are expected to be blank |
| 123 | in fonts. All other blank chars are assumed to be broken and |
| 124 | won't appear in the resulting charsets |
| 125 | --> |
| 126 | <blank> |
| 127 | <int>0x0020</int> <!-- SPACE --> |
| 128 | <int>0x00A0</int> <!-- NO-BREAK SPACE --> |
| 129 | <int>0x00AD</int> <!-- SOFT HYPHEN --> |
| 130 | <int>0x034F</int> <!-- COMBINING GRAPHEME JOINER --> |
| 131 | <int>0x0600</int> <!-- ARABIC NUMBER SIGN --> |
| 132 | <int>0x0601</int> <!-- ARABIC SIGN SANAH --> |
| 133 | <int>0x0602</int> <!-- ARABIC FOOTNOTE MARKER --> |
| 134 | <int>0x0603</int> <!-- ARABIC SIGN SAFHA --> |
| 135 | <int>0x06DD</int> <!-- ARABIC END OF AYAH --> |
| 136 | <int>0x070F</int> <!-- SYRIAC ABBREVIATION MARK --> |
| 137 | <int>0x115F</int> <!-- HANGUL CHOSEONG FILLER --> |
| 138 | <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER --> |
| 139 | <int>0x1680</int> <!-- OGHAM SPACE MARK --> |
| 140 | <int>0x17B4</int> <!-- KHMER VOWEL INHERENT AQ --> |
| 141 | <int>0x17B5</int> <!-- KHMER VOWEL INHERENT AA --> |
| 142 | <int>0x180E</int> <!-- MONGOLIAN VOWEL SEPARATOR --> |
| 143 | <int>0x2000</int> <!-- EN QUAD --> |
| 144 | <int>0x2001</int> <!-- EM QUAD --> |
| 145 | <int>0x2002</int> <!-- EN SPACE --> |
| 146 | <int>0x2003</int> <!-- EM SPACE --> |
| 147 | <int>0x2004</int> <!-- THREE-PER-EM SPACE --> |
| 148 | <int>0x2005</int> <!-- FOUR-PER-EM SPACE --> |
| 149 | <int>0x2006</int> <!-- SIX-PER-EM SPACE --> |
| 150 | <int>0x2007</int> <!-- FIGURE SPACE --> |
| 151 | <int>0x2008</int> <!-- PUNCTUATION SPACE --> |
| 152 | <int>0x2009</int> <!-- THIN SPACE --> |
| 153 | <int>0x200A</int> <!-- HAIR SPACE --> |
| 154 | <int>0x200B</int> <!-- ZERO WIDTH SPACE --> |
| 155 | <int>0x200C</int> <!-- ZERO WIDTH NON-JOINER --> |
| 156 | <int>0x200D</int> <!-- ZERO WIDTH JOINER --> |
| 157 | <int>0x200E</int> <!-- LEFT-TO-RIGHT MARK --> |
| 158 | <int>0x200F</int> <!-- RIGHT-TO-LEFT MARK --> |
| 159 | <int>0x2028</int> <!-- LINE SEPARATOR --> |
| 160 | <int>0x2029</int> <!-- PARAGRAPH SEPARATOR --> |
| 161 | <int>0x202A</int> <!-- LEFT-TO-RIGHT EMBEDDING --> |
| 162 | <int>0x202B</int> <!-- RIGHT-TO-LEFT EMBEDDING --> |
| 163 | <int>0x202C</int> <!-- POP DIRECTIONAL FORMATTING --> |
| 164 | <int>0x202D</int> <!-- LEFT-TO-RIGHT OVERRIDE --> |
| 165 | <int>0x202E</int> <!-- RIGHT-TO-LEFT OVERRIDE --> |
| 166 | <int>0x202F</int> <!-- NARROW NO-BREAK SPACE --> |
| 167 | <int>0x205F</int> <!-- MEDIUM MATHEMATICAL SPACE --> |
| 168 | <int>0x2060</int> <!-- WORD JOINER --> |
| 169 | <int>0x2061</int> <!-- FUNCTION APPLICATION --> |
| 170 | <int>0x2062</int> <!-- INVISIBLE TIMES --> |
| 171 | <int>0x2063</int> <!-- INVISIBLE SEPARATOR --> |
| 172 | <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING --> |
| 173 | <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING --> |
| 174 | <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING --> |
| 175 | <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING --> |
| 176 | <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES --> |
| 177 | <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES --> |
| 178 | <int>0x2800</int> <!-- BRAILLE PATTERN BLANK --> |
| 179 | <int>0x3000</int> <!-- IDEOGRAPHIC SPACE --> |
| 180 | <int>0x3164</int> <!-- HANGUL FILLER --> |
| 181 | <int>0xFEFF</int> <!-- ZERO WIDTH NO-BREAK SPACE --> |
| 182 | <int>0xFFA0</int> <!-- HALFWIDTH HANGUL FILLER --> |
| 183 | <int>0xFFF9</int> <!-- INTERLINEAR ANNOTATION ANCHOR --> |
| 184 | <int>0xFFFA</int> <!-- INTERLINEAR ANNOTATION SEPARATOR --> |
| 185 | <int>0xFFFB</int> <!-- INTERLINEAR ANNOTATION TERMINATOR --> |
| 186 | </blank> |
| 187 | <!-- |
| 188 | Rescan configuration every 30 seconds when FcFontSetList is called |
| 189 | --> |
| 190 | <rescan> |
| 191 | <int>30</int> |
| 192 | </rescan> |
| 193 | </config> |
| 194 | |
| 195 | </fontconfig> |
| 196 | EOF |