fonts.conf 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- /etc/fonts/fonts.conf file to configure system font access -->
  4. <fontconfig>
  5. <!--
  6. 100410 updated manually.
  7. DO NOT EDIT THIS FILE.
  8. IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
  9. LOCAL CHANGES BELONG IN 'local.conf'.
  10. The intent of this standard configuration file is to be adequate for
  11. most environments. If you have a reasonably normal environment and
  12. have found problems with this configuration, they are probably
  13. things that others will also want fixed. Please submit any
  14. problems to the fontconfig bugzilla system located at fontconfig.org
  15. Note that the normal 'make install' procedure for fontconfig is to
  16. replace any existing fonts.conf file with the new version. Place
  17. any local customizations in local.conf which this file references.
  18. Keith Packard
  19. -->
  20. <!-- Font directory list configured on Sun Jan 23 20:52:39 PST 2005 -->
  21. <dir>/usr/share/fonts</dir>
  22. <!-- <dir>/usr/X11R7/lib/X11/fonts/TTF</dir>
  23. <dir>/usr/X11R7/lib/X11/fonts/Type1</dir> -->
  24. <dir>/usr/share/X11/fonts</dir>
  25. <dir>~/.fonts</dir>
  26. <!-- Font cache directory list -->
  27. <cachedir>/var/cache/fontconfig</cachedir>
  28. <cachedir>~/.fontconfig</cachedir>
  29. <!--
  30. Accept deprecated 'mono' alias, replacing it with 'monospace'
  31. -->
  32. <match target="pattern">
  33. <test qual="any" name="family">
  34. <string>mono</string>
  35. </test>
  36. <edit name="family" mode="assign">
  37. <string>monospace</string>
  38. </edit>
  39. </match>
  40. <!--
  41. Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
  42. -->
  43. <match target="pattern">
  44. <test qual="any" name="family">
  45. <string>sans serif</string>
  46. </test>
  47. <edit name="family" mode="assign">
  48. <string>sans-serif</string>
  49. </edit>
  50. </match>
  51. <!--
  52. Accept deprecated 'sans' alias, replacing it with 'sans-serif'
  53. -->
  54. <match target="pattern">
  55. <test qual="any" name="family">
  56. <string>sans</string>
  57. </test>
  58. <edit name="family" mode="assign">
  59. <string>sans-serif</string>
  60. </edit>
  61. </match>
  62. <!--
  63. Mark common families with their generics so we'll get
  64. something reasonable
  65. -->
  66. <!--
  67. Serif faces
  68. -->
  69. <alias>
  70. <family>Bitstream Vera Serif</family>
  71. <family>Times</family>
  72. <family>Times New Roman</family>
  73. <family>Nimbus Roman No9 L</family>
  74. <family>Luxi Serif</family>
  75. <family>Kochi Mincho</family>
  76. <family>AR PL SungtiL GB</family>
  77. <family>AR PL Mingti2L Big5</family>
  78. <family>Baekmuk Batang</family>
  79. <default><family>serif</family></default>
  80. </alias>
  81. <!--
  82. Sans-serif faces
  83. -->
  84. <alias>
  85. <family>DejaVu Sans</family>
  86. <family>Bitstream Vera Sans</family>
  87. <family>Helvetica</family>
  88. <family>Arial</family>
  89. <family>Verdana</family>
  90. <family>Nimbus Sans L</family>
  91. <family>Luxi Sans</family>
  92. <family>Kochi Gothic</family>
  93. <family>AR PL KaitiM GB</family>
  94. <family>AR PL KaitiM Big5</family>
  95. <family>Baekmuk Dotum</family>
  96. <family>SimSun</family>
  97. <default><family>sans-serif</family></default>
  98. </alias>
  99. <!--
  100. Monospace faces
  101. -->
  102. <alias>
  103. <family>Bitstream Vera Sans Mono</family>
  104. <family>Courier</family>
  105. <family>Courier New</family>
  106. <family>Andale Mono</family>
  107. <family>Luxi Mono</family>
  108. <family>DejaVu Sans Mono</family>
  109. <family>Nimbus Mono L</family>
  110. <family>NSimSun</family>
  111. <default><family>monospace</family></default>
  112. </alias>
  113. <!--
  114. If the font still has no generic name, add sans-serif
  115. -->
  116. <match target="pattern">
  117. <test qual="all" name="family" compare="not_eq">
  118. <string>sans-serif</string>
  119. </test>
  120. <test qual="all" name="family" compare="not_eq">
  121. <string>serif</string>
  122. </test>
  123. <test qual="all" name="family" compare="not_eq">
  124. <string>monospace</string>
  125. </test>
  126. <edit name="family" mode="append_last">
  127. <string>sans-serif</string>
  128. </edit>
  129. </match>
  130. <!--
  131. Some Asian fonts misadvertise themselves as monospaced when
  132. in fact they are dual-spaced (half and full). This makes
  133. FreeType very confused as it forces all widths to match.
  134. Undo this magic by disabling the width forcing code -->
  135. <match target="font">
  136. <test name="family"><string>GulimChe</string></test>
  137. <edit name="globaladvance"><bool>false</bool></edit>
  138. </match>
  139. <match target="font">
  140. <test name="family"><string>DotumChe</string></test>
  141. <edit name="globaladvance"><bool>false</bool></edit>
  142. </match>
  143. <match target="font">
  144. <test name="family"><string>BatangChe</string></test>
  145. <edit name="globaladvance"><bool>false</bool></edit>
  146. </match>
  147. <match target="font">
  148. <test name="family"><string>GungsuhChe</string></test>
  149. <edit name="globaladvance"><bool>false</bool></edit>
  150. </match>
  151. <!--
  152. The Bitstream Vera fonts have GASP entries suggesting that hinting be
  153. disabled below 8 ppem, but FreeType ignores those, preferring to use
  154. the data found in the instructed hints. The initial Vera release
  155. didn't include the right instructions in the 'prep' table. Fix this
  156. by disabling hinting manually at smaller sizes (< 8ppem)
  157. -->
  158. <match target="font">
  159. <test name="family">
  160. <string>Bitstream Vera Sans</string>
  161. </test>
  162. <test name="pixelsize" compare="less">
  163. <double>7.5</double>
  164. </test>
  165. <edit name="hinting">
  166. <bool>false</bool>
  167. </edit>
  168. </match>
  169. <match target="font">
  170. <test name="family">
  171. <string>Bitstream Vera Serif</string>
  172. </test>
  173. <test name="pixelsize" compare="less">
  174. <double>7.5</double>
  175. </test>
  176. <edit name="hinting">
  177. <bool>false</bool>
  178. </edit>
  179. </match>
  180. <match target="font">
  181. <test name="family">
  182. <string>Bitstream Vera Sans Mono</string>
  183. </test>
  184. <test name="pixelsize" compare="less">
  185. <double>7.5</double>
  186. </test>
  187. <edit name="hinting">
  188. <bool>false</bool>
  189. </edit>
  190. </match>
  191. <!--
  192. Load per-user customization file
  193. -->
  194. <include ignore_missing="yes">~/.fonts.conf</include>
  195. <!--
  196. Load local system customization file
  197. -->
  198. <include ignore_missing="yes">local.conf</include>
  199. <!--
  200. Alias well known font names to available TrueType fonts
  201. -->
  202. <alias>
  203. <family>Times</family>
  204. <accept><family>Times New Roman</family></accept>
  205. </alias>
  206. <alias>
  207. <family>Helvetica</family>
  208. <accept><family>Verdana</family></accept>
  209. </alias>
  210. <alias>
  211. <family>Arial</family>
  212. <accept><family>Verdana</family></accept>
  213. </alias>
  214. <alias>
  215. <family>Courier</family>
  216. <accept><family>Courier New</family></accept>
  217. </alias>
  218. <!--
  219. Check user preference to avoid bitmap fonts and replace
  220. bitmap face names with equivalent scalable fonts
  221. -->
  222. <match target="pattern">
  223. <test name="prefer_outline">
  224. <bool>true</bool>
  225. </test>
  226. <test name="family">
  227. <string>Helvetica</string>
  228. </test>
  229. <edit name="family" mode="prepend" binding="same">
  230. <string>Arial</string>
  231. </edit>
  232. </match>
  233. <match target="pattern">
  234. <test name="prefer_outline">
  235. <bool>true</bool>
  236. </test>
  237. <test name="family">
  238. <string>Times</string>
  239. </test>
  240. <edit name="family" mode="prepend" binding="same">
  241. <string>Times New Roman</string>
  242. </edit>
  243. </match>
  244. <!--
  245. Provide required aliases for standard names
  246. -->
  247. <alias>
  248. <family>serif</family>
  249. <prefer>
  250. <family>Bitstream Vera Serif</family>
  251. <family>Times New Roman</family>
  252. <family>Nimbus Roman No9 L</family>
  253. <family>Luxi Serif</family>
  254. <family>Times</family>
  255. <family>Kochi Mincho</family>
  256. <family>AR PL SungtiL GB</family>
  257. <family>AR PL Mingti2L Big5</family>
  258. <family>Baekmuk Batang</family>
  259. </prefer>
  260. </alias>
  261. <alias>
  262. <family>sans-serif</family>
  263. <prefer>
  264. <family>DejaVu Sans</family>
  265. <family>Bitstream Vera Sans</family>
  266. <family>Verdana</family>
  267. <family>Nimbus Sans L</family>
  268. <family>Luxi Sans</family>
  269. <family>Arial</family>
  270. <family>Helvetica</family>
  271. <family>Kochi Gothic</family>
  272. <family>AR PL KaitiM GB</family>
  273. <family>AR PL KaitiM Big5</family>
  274. <family>Baekmuk Dotum</family>
  275. <family>SimSun</family>
  276. </prefer>
  277. </alias>
  278. <alias>
  279. <family>monospace</family>
  280. <prefer>
  281. <family>Bitstream Vera Sans Mono</family>
  282. <family>Andale Mono</family>
  283. <family>Courier New</family>
  284. <family>Luxi Mono</family>
  285. <family>Nimbus Mono L</family>
  286. <family>DejaVu Sans Mono</family
  287. <family>Kochi Gothic</family>
  288. <family>AR PL KaitiM GB</family>
  289. <family>Baekmuk Dotum</family>
  290. </prefer>
  291. </alias>
  292. <!--
  293. Artificial oblique for fonts without an italic or oblique version
  294. -->
  295. <match target="font">
  296. <!-- check to see if the font is roman -->
  297. <test name="slant">
  298. <const>roman</const>
  299. </test>
  300. <!-- check to see if the pattern requested non-roman -->
  301. <test target="pattern" name="slant" compare="not_eq">
  302. <const>roman</const>
  303. </test>
  304. <!-- multiply the matrix to slant the font -->
  305. <edit name="matrix" mode="assign">
  306. <times>
  307. <name>matrix</name>
  308. <matrix><double>1</double><double>0.2</double>
  309. <double>0</double><double>1</double>
  310. </matrix>
  311. </times>
  312. </edit>
  313. <!-- pretend the font is oblique now -->
  314. <edit name="slant" mode="assign">
  315. <const>oblique</const>
  316. </edit>
  317. </match>
  318. <config>
  319. <!--
  320. These are the default Unicode chars that are expected to be blank
  321. in fonts. All other blank chars are assumed to be broken and
  322. won't appear in the resulting charsets
  323. -->
  324. <blank>
  325. <int>0x0020</int> <!-- SPACE -->
  326. <int>0x00a0</int> <!-- NO-BREAK SPACE -->
  327. <int>0x00ad</int> <!-- SOFT HYPHEN -->
  328. <int>0x115f</int> <!-- HANGUL CHOSEONG FILLER -->
  329. <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER -->
  330. <int>0x1680</int> <!-- OGHAM SPACE MARK -->
  331. <int>0x2000</int> <!-- EN QUAD -->
  332. <int>0x2001</int> <!-- EM QUAD -->
  333. <int>0x2002</int> <!-- EN SPACE -->
  334. <int>0x2003</int> <!-- EM SPACE -->
  335. <int>0x2004</int> <!-- THREE-PER-EM SPACE -->
  336. <int>0x2005</int> <!-- FOUR-PER-EM SPACE -->
  337. <int>0x2006</int> <!-- SIX-PER-EM SPACE -->
  338. <int>0x2007</int> <!-- FIGURE SPACE -->
  339. <int>0x2008</int> <!-- PUNCTUATION SPACE -->
  340. <int>0x2009</int> <!-- THIN SPACE -->
  341. <int>0x200a</int> <!-- HAIR SPACE -->
  342. <int>0x200b</int> <!-- ZERO WIDTH SPACE -->
  343. <int>0x200c</int> <!-- ZERO WIDTH NON-JOINER -->
  344. <int>0x200d</int> <!-- ZERO WIDTH JOINER -->
  345. <int>0x200e</int> <!-- LEFT-TO-RIGHT MARK -->
  346. <int>0x200f</int> <!-- RIGHT-TO-LEFT MARK -->
  347. <int>0x2028</int> <!-- LINE SEPARATOR -->
  348. <int>0x2029</int> <!-- PARAGRAPH SEPARATOR -->
  349. <int>0x202a</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
  350. <int>0x202b</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
  351. <int>0x202c</int> <!-- POP DIRECTIONAL FORMATTING -->
  352. <int>0x202d</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
  353. <int>0x202e</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
  354. <int>0x202f</int> <!-- NARROW NO-BREAK SPACE -->
  355. <int>0x205f</int> <!-- MEDIUM MATHEMATICAL SPACE -->
  356. <int>0x2060</int> <!-- WORD JOINER -->
  357. <int>0x2061</int> <!-- FUNCTION APPLICATION -->
  358. <int>0x2062</int> <!-- INVISIBLE TIMES -->
  359. <int>0x2063</int> <!-- INVISIBLE SEPARATOR -->
  360. <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING -->
  361. <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING -->
  362. <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING -->
  363. <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING -->
  364. <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES -->
  365. <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES -->
  366. <int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
  367. <int>0x3164</int> <!-- HANGUL FILLER -->
  368. <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
  369. <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER -->
  370. <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
  371. <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
  372. <int>0xfffb</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
  373. </blank>
  374. <!--
  375. Rescan configuration every 30 seconds when FcFontSetList is called
  376. -->
  377. <rescan>
  378. <int>30</int>
  379. </rescan>
  380. </config>
  381. </fontconfig>