| 1 | <?xml version="1.0"?> |
| 2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> |
| 3 | <fontconfig> |
| 4 | <!-- workaround for wrong weight and style --> |
| 5 | <match target="scan"> |
| 6 | <test name="fullname" qual="any" compare="eq"> |
| 7 | <string>NanumGothicExtraBold</string> |
| 8 | </test> |
| 9 | <edit name="weight" mode="assign"><const>extrabold</const></edit> |
| 10 | <edit name="style" mode="assign_replace"><string>ExtraBold</string></edit> |
| 11 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 12 | </match> |
| 13 | <match target="scan"> |
| 14 | <test name="fullname" qual="any" compare="eq"> |
| 15 | <string>NanumMyeongjoExtraBold</string> |
| 16 | </test> |
| 17 | <edit name="weight" mode="assign"><const>extrabold</const></edit> |
| 18 | <edit name="style" mode="assign_replace"><string>ExtraBold</string></edit> |
| 19 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 20 | </match> |
| 21 | <match target="scan"> |
| 22 | <test name="fullname" qual="any" compare="eq"> |
| 23 | <string>NanumBarunGothic UltraLight</string> |
| 24 | </test> |
| 25 | <edit name="weight" mode="assign"><const>ultralight</const></edit> |
| 26 | </match> |
| 27 | <match target="scan"> |
| 28 | <test name="fullname" qual="any" compare="eq"> |
| 29 | <string>NanumSquare Light</string> |
| 30 | </test> |
| 31 | <edit name="style" mode="assign_replace"><string>Light</string></edit> |
| 32 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 33 | </match> |
| 34 | <match target="scan"> |
| 35 | <test name="fullname" qual="any" compare="eq"> |
| 36 | <string>NanumSquare ExtraBold</string> |
| 37 | </test> |
| 38 | <edit name="style" mode="assign_replace"><string>ExtraBold</string></edit> |
| 39 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 40 | </match> |
| 41 | <match target="scan"> |
| 42 | <test name="fullname" qual="any" compare="eq"> |
| 43 | <string>NanumSquare_ac Light</string> |
| 44 | </test> |
| 45 | <edit name="style" mode="assign_replace"><string>Light</string></edit> |
| 46 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 47 | </match> |
| 48 | <match target="scan"> |
| 49 | <test name="fullname" qual="any" compare="eq"> |
| 50 | <string>NanumSquare_ac Bold</string> |
| 51 | </test> |
| 52 | <edit name="style" mode="assign_replace"><string>ExtraBold</string></edit> |
| 53 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 54 | </match> |
| 55 | <match target="scan"> |
| 56 | <test name="fullname" qual="any" compare="eq"> |
| 57 | <string>NanumSquare_ac ExtraBold</string> |
| 58 | </test> |
| 59 | <edit name="style" mode="assign_replace"><string>ExtraBold</string></edit> |
| 60 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 61 | </match> |
| 62 | <match target="scan"> |
| 63 | <test name="fullname" qual="any" compare="eq"> |
| 64 | <string>NanumSquare Neo ExtraBold</string> |
| 65 | </test> |
| 66 | <edit name="style" mode="assign_replace"><string>ExtraBold</string></edit> |
| 67 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 68 | </match> |
| 69 | <match target="scan"> |
| 70 | <test name="fullname" qual="any" compare="eq"> |
| 71 | <string>NanumSquare Neo Heavy</string> |
| 72 | </test> |
| 73 | <edit name="style" mode="assign_replace"><string>Heavy</string></edit> |
| 74 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 75 | </match> |
| 76 | <match target="scan"> |
| 77 | <test name="fullname" qual="any" compare="eq"> |
| 78 | <string>NanumSquare Neo Light</string> |
| 79 | </test> |
| 80 | <edit name="style" mode="assign_replace"><string>Light</string></edit> |
| 81 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 82 | </match> |
| 83 | <match target="scan"> |
| 84 | <test name="fullname" qual="any" compare="eq"> |
| 85 | <string>NanumGothic Eco Bold</string> |
| 86 | </test> |
| 87 | <edit name="weight" mode="assign_replace"><const>bold</const></edit> |
| 88 | <edit name="style" mode="assign_replace"><string>Bold</string></edit> |
| 89 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 90 | </match> |
| 91 | <match target="scan"> |
| 92 | <test name="fullname" qual="any" compare="eq"> |
| 93 | <string>NanumGothic Eco ExtraBold</string> |
| 94 | </test> |
| 95 | <edit name="weight" mode="assign_replace"><const>extrabold</const></edit> |
| 96 | <edit name="style" mode="assign_replace"><string>ExtraBold</string></edit> |
| 97 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 98 | </match> |
| 99 | <match target="scan"> |
| 100 | <test name="fullname" qual="any" compare="eq"> |
| 101 | <string>NanumMyeongjo Eco Bold</string> |
| 102 | </test> |
| 103 | <edit name="weight" mode="assign_replace"><const>bold</const></edit> |
| 104 | <edit name="style" mode="assign_replace"><string>Bold</string></edit> |
| 105 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 106 | </match> |
| 107 | <match target="scan"> |
| 108 | <test name="fullname" qual="any" compare="eq"> |
| 109 | <string>NanumMyeongjo Eco ExtraBold</string> |
| 110 | </test> |
| 111 | <edit name="weight" mode="assign_replace"><const>extrabold</const></edit> |
| 112 | <edit name="style" mode="assign_replace"><string>ExtraBold</string></edit> |
| 113 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 114 | </match> |
| 115 | <match target="scan"> |
| 116 | <test name="fullname" qual="any" compare="eq"> |
| 117 | <string>NanumMyeongjo Eco ExtraBold</string> |
| 118 | </test> |
| 119 | <edit name="weight" mode="assign_replace"><const>extrabold</const></edit> |
| 120 | <edit name="style" mode="assign_replace"><string>ExtraBold</string></edit> |
| 121 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 122 | </match> |
| 123 | <match target="scan"> |
| 124 | <test name="fullname" qual="any" compare="eq"> |
| 125 | <string>NanumHuman TTF ExtraBold</string> |
| 126 | </test> |
| 127 | <edit name="weight" mode="assign_replace"><const>extrabold</const></edit> |
| 128 | <edit name="style" mode="assign_replace"><string>ExtraBold</string></edit> |
| 129 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 130 | </match> |
| 131 | <match target="scan"> |
| 132 | <test name="fullname" qual="any" compare="eq"> |
| 133 | <string>NanumHuman TTF Bold</string> |
| 134 | </test> |
| 135 | <edit name="weight" mode="assign_replace"><const>bold</const></edit> |
| 136 | <edit name="style" mode="assign_replace"><string>Bold</string></edit> |
| 137 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 138 | </match> |
| 139 | <match target="scan"> |
| 140 | <test name="fullname" qual="any" compare="eq"> |
| 141 | <string>NanumHuman TTF Heavy</string> |
| 142 | </test> |
| 143 | <edit name="weight" mode="assign_replace"><const>heavy</const></edit> |
| 144 | <edit name="style" mode="assign_replace"><string>Heavy</string></edit> |
| 145 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 146 | </match> |
| 147 | <match target="scan"> |
| 148 | <test name="fullname" qual="any" compare="eq"> |
| 149 | <string>NanumHuman TTF Light</string> |
| 150 | </test> |
| 151 | <edit name="weight" mode="assign_replace"><const>light</const></edit> |
| 152 | <edit name="style" mode="assign_replace"><string>Light</string></edit> |
| 153 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 154 | </match> |
| 155 | <match target="scan"> |
| 156 | <test name="fullname" qual="any" compare="eq"> |
| 157 | <string>NanumHuman TTF ExtraLight</string> |
| 158 | </test> |
| 159 | <edit name="weight" mode="assign_replace"><const>extralight</const></edit> |
| 160 | <edit name="style" mode="assign_replace"><string>ExtraLight</string></edit> |
| 161 | <edit name="stylelang" mode="assign_replace"><string>en</string></edit> |
| 162 | </match> |
| 163 | |
| 164 | <!-- fix wrong elements --> |
| 165 | <match target="font"> |
| 166 | <test name="family" qual="any" compare="eq"> |
| 167 | <string>Nanum Pen Script</string> |
| 168 | </test> |
| 169 | <edit name="decorative" mode="assign"><bool>true</bool></edit> |
| 170 | </match> |
| 171 | <match target="font"> |
| 172 | <test name="family" qual="any" compare="eq"> |
| 173 | <string>Nanum Brush Script</string> |
| 174 | </test> |
| 175 | <edit name="decorative" mode="assign"><bool>true</bool></edit> |
| 176 | </match> |
| 177 | |
| 178 | <!-- specify fallbacks for the missing glyphs. --> |
| 179 | <match target="pattern"> |
| 180 | <test name="family" compare="eq"> |
| 181 | <string>NanumGothic Eco</string> |
| 182 | </test> |
| 183 | <edit name="family" mode="append"> |
| 184 | <string>NanumGothic</string> |
| 185 | <string>DejaVu Sans</string> |
| 186 | </edit> |
| 187 | </match> |
| 188 | <match target="pattern"> |
| 189 | <test name="family" compare="eq"> |
| 190 | <string>NanumBarunGothic YetHangul</string> |
| 191 | </test> |
| 192 | <edit name="family" mode="append"> |
| 193 | <string>NanumBarunGothic</string> |
| 194 | <string>DejaVu Sans</string> |
| 195 | </edit> |
| 196 | </match> |
| 197 | <match target="pattern"> |
| 198 | <test name="family" compare="eq"> |
| 199 | <string>NanumMyeongjo Eco</string> |
| 200 | </test> |
| 201 | <edit name="family" mode="append"> |
| 202 | <string>NanumMyeongjo</string> |
| 203 | <string>DejaVu Serif</string> |
| 204 | </edit> |
| 205 | </match> |
| 206 | <match target="pattern"> |
| 207 | <test name="family" compare="eq"> |
| 208 | <string>NanumMyeongjo YetHangul</string> |
| 209 | </test> |
| 210 | <edit name="family" mode="append"> |
| 211 | <string>NanumMyeongjo</string> |
| 212 | <string>DejaVu Serif</string> |
| 213 | </edit> |
| 214 | </match> |
| 215 | |
| 216 | <!-- |
| 217 | Font specific tweaks |
| 218 | --> |
| 219 | <match target="font"> |
| 220 | <test name="family" qual="any" compare="eq"> |
| 221 | <string>Nanum Pen Script</string> |
| 222 | </test> |
| 223 | <edit name="antialias" mode="assign"><bool>true</bool></edit> |
| 224 | <edit name="hinting" mode="assign"><bool>true</bool></edit> |
| 225 | <edit name="autohint" mode="assign"><bool>false</bool></edit> |
| 226 | </match> |
| 227 | <match target="font"> |
| 228 | <test name="family" qual="any" compare="eq"> |
| 229 | <string>Nanum Brush Script</string> |
| 230 | </test> |
| 231 | <edit name="antialias" mode="assign"><bool>true</bool></edit> |
| 232 | <edit name="hinting" mode="assign"><bool>true</bool></edit> |
| 233 | <edit name="autohint" mode="assign"><bool>false</bool></edit> |
| 234 | </match> |
| 235 | |
| 236 | <!-- default font --> |
| 237 | <match> |
| 238 | <test name="lang" compare="contains"> |
| 239 | <string>ko</string> |
| 240 | </test> |
| 241 | <test name="family"> |
| 242 | <string>cursive</string> |
| 243 | </test> |
| 244 | <edit name="family" mode="prepend"> |
| 245 | <string>Nanum Pen Script</string> |
| 246 | </edit> |
| 247 | </match> |
| 248 | <alias> |
| 249 | <family>Nanum Pen Script</family> |
| 250 | <default> |
| 251 | <family>cursive</family> |
| 252 | </default> |
| 253 | </alias> |
| 254 | |
| 255 | </fontconfig> |