fonts.conf 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- This file whitelists Tor Browser's bundled fonts and standardizes rendering settings. -->
  4. <!--
  5. Derived from fonts.conf.in of Fontconfig.
  6. Copyright © 2000,2001,2002,2003,2004,2006,2007 Keith Packard
  7. Copyright © 2005 Patrick Lam
  8. Copyright © 2009 Roozbeh Pournader
  9. Copyright © 2008,2009 Red Hat, Inc.
  10. Copyright © 2008 Danilo Šegan
  11. Copyright © 2012 Google, Inc.
  12. Permission to use, copy, modify, distribute, and sell this software and its
  13. documentation for any purpose is hereby granted without fee, provided that
  14. the above copyright notice appear in all copies and that both that
  15. copyright notice and this permission notice appear in supporting
  16. documentation, and that the name of the author(s) not be used in
  17. advertising or publicity pertaining to distribution of the software without
  18. specific, written prior permission. The authors make no
  19. representations about the suitability of this software for any purpose. It
  20. is provided "as is" without express or implied warranty.
  21. THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  22. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  23. EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  24. CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  25. DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  26. TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  27. PERFORMANCE OF THIS SOFTWARE.
  28. -->
  29. <fontconfig>
  30. <!-- Font directory list -->
  31. <dir>fonts</dir>
  32. <!--
  33. Accept deprecated 'mono' alias, replacing it with 'monospace'
  34. -->
  35. <match target="pattern">
  36. <test qual="any" name="family">
  37. <string>mono</string>
  38. </test>
  39. <edit name="family" mode="assign" binding="same">
  40. <string>monospace</string>
  41. </edit>
  42. </match>
  43. <!--
  44. Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
  45. -->
  46. <match target="pattern">
  47. <test qual="any" name="family">
  48. <string>sans serif</string>
  49. </test>
  50. <edit name="family" mode="assign" binding="same">
  51. <string>sans-serif</string>
  52. </edit>
  53. </match>
  54. <!--
  55. Accept deprecated 'sans' alias, replacing it with 'sans-serif'
  56. -->
  57. <match target="pattern">
  58. <test qual="any" name="family">
  59. <string>sans</string>
  60. </test>
  61. <edit name="family" mode="assign" binding="same">
  62. <string>sans-serif</string>
  63. </edit>
  64. </match>
  65. <!-- Font cache directory list -->
  66. <cachedir prefix="xdg">fontconfig</cachedir>
  67. <config>
  68. <!--
  69. These are the default Unicode chars that are expected to be blank
  70. in fonts. All other blank chars are assumed to be broken and
  71. won't appear in the resulting charsets
  72. -->
  73. <blank>
  74. <int>0x0020</int> <!-- SPACE -->
  75. <int>0x00A0</int> <!-- NO-BREAK SPACE -->
  76. <int>0x00AD</int> <!-- SOFT HYPHEN -->
  77. <int>0x034F</int> <!-- COMBINING GRAPHEME JOINER -->
  78. <int>0x0600</int> <!-- ARABIC NUMBER SIGN -->
  79. <int>0x0601</int> <!-- ARABIC SIGN SANAH -->
  80. <int>0x0602</int> <!-- ARABIC FOOTNOTE MARKER -->
  81. <int>0x0603</int> <!-- ARABIC SIGN SAFHA -->
  82. <int>0x06DD</int> <!-- ARABIC END OF AYAH -->
  83. <int>0x070F</int> <!-- SYRIAC ABBREVIATION MARK -->
  84. <int>0x115F</int> <!-- HANGUL CHOSEONG FILLER -->
  85. <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER -->
  86. <int>0x1680</int> <!-- OGHAM SPACE MARK -->
  87. <int>0x17B4</int> <!-- KHMER VOWEL INHERENT AQ -->
  88. <int>0x17B5</int> <!-- KHMER VOWEL INHERENT AA -->
  89. <int>0x180E</int> <!-- MONGOLIAN VOWEL SEPARATOR -->
  90. <int>0x2000</int> <!-- EN QUAD -->
  91. <int>0x2001</int> <!-- EM QUAD -->
  92. <int>0x2002</int> <!-- EN SPACE -->
  93. <int>0x2003</int> <!-- EM SPACE -->
  94. <int>0x2004</int> <!-- THREE-PER-EM SPACE -->
  95. <int>0x2005</int> <!-- FOUR-PER-EM SPACE -->
  96. <int>0x2006</int> <!-- SIX-PER-EM SPACE -->
  97. <int>0x2007</int> <!-- FIGURE SPACE -->
  98. <int>0x2008</int> <!-- PUNCTUATION SPACE -->
  99. <int>0x2009</int> <!-- THIN SPACE -->
  100. <int>0x200A</int> <!-- HAIR SPACE -->
  101. <int>0x200B</int> <!-- ZERO WIDTH SPACE -->
  102. <int>0x200C</int> <!-- ZERO WIDTH NON-JOINER -->
  103. <int>0x200D</int> <!-- ZERO WIDTH JOINER -->
  104. <int>0x200E</int> <!-- LEFT-TO-RIGHT MARK -->
  105. <int>0x200F</int> <!-- RIGHT-TO-LEFT MARK -->
  106. <int>0x2028</int> <!-- LINE SEPARATOR -->
  107. <int>0x2029</int> <!-- PARAGRAPH SEPARATOR -->
  108. <int>0x202A</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
  109. <int>0x202B</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
  110. <int>0x202C</int> <!-- POP DIRECTIONAL FORMATTING -->
  111. <int>0x202D</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
  112. <int>0x202E</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
  113. <int>0x202F</int> <!-- NARROW NO-BREAK SPACE -->
  114. <int>0x205F</int> <!-- MEDIUM MATHEMATICAL SPACE -->
  115. <int>0x2060</int> <!-- WORD JOINER -->
  116. <int>0x2061</int> <!-- FUNCTION APPLICATION -->
  117. <int>0x2062</int> <!-- INVISIBLE TIMES -->
  118. <int>0x2063</int> <!-- INVISIBLE SEPARATOR -->
  119. <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING -->
  120. <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING -->
  121. <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING -->
  122. <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING -->
  123. <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES -->
  124. <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES -->
  125. <int>0x2800</int> <!-- BRAILLE PATTERN BLANK -->
  126. <int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
  127. <int>0x3164</int> <!-- HANGUL FILLER -->
  128. <int>0xFEFF</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
  129. <int>0xFFA0</int> <!-- HALFWIDTH HANGUL FILLER -->
  130. <int>0xFFF9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
  131. <int>0xFFFA</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
  132. <int>0xFFFB</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
  133. </blank>
  134. <!--
  135. Rescan configuration every 30 seconds when FcFontSetList is called
  136. -->
  137. <rescan>
  138. <int>30</int>
  139. </rescan>
  140. </config>
  141. <!-- Standardize rendering settings. -->
  142. <match target="pattern">
  143. <edit name="antialias" mode="assign"><bool>true</bool></edit>
  144. <edit name="autohint" mode="assign"><bool>false</bool></edit>
  145. <edit name="hinting" mode="assign"><bool>true</bool></edit>
  146. <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
  147. <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
  148. <edit name="rgba" mode="assign"><const>none</const></edit>
  149. </match>
  150. </fontconfig>