Advertisement
Guest User

fonts.conf

a guest
Sep 13th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. <?xml version='1.0'?>
  2. <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
  3. <fontconfig>
  4. <dir>~/.fonts</dir>
  5. <alias>
  6. <family>serif</family>
  7. <prefer>
  8. <family>Source Serif Pro</family>
  9. <family>IPAMincho</family>
  10. </prefer>
  11. </alias>
  12. <alias>
  13. <family>sans-serif</family>
  14. <prefer>
  15. <family>Source Sans Pro</family>
  16. <family>Source Han Sans JP</family>
  17. </prefer>
  18. </alias>
  19. <alias>
  20. <family>monospace</family>
  21. <prefer>
  22. <family>Source Code Pro</family>
  23. </prefer>
  24. </alias>
  25. <alias>
  26. <family>cursive</family>
  27. <prefer>
  28. <family>Comic Neue</family>
  29. </prefer>
  30. </alias>
  31. <!-- fuck helvetica -->
  32. <match>
  33. <test name="family">
  34. <string>Helvetica</string>
  35. </test>
  36. <edit binding="same" mode="assign" name="family">
  37. <string>Source Sans Pro</string>
  38. </edit>
  39. </match>
  40. <!-- define font family for some fonts fontconfig doesn't know about -->
  41. <alias>
  42. <family>Source Code Pro</family>
  43. <default>
  44. <family>monospace</family>
  45. </default>
  46. </alias>
  47. <alias>
  48. <family>Droid Sans Mono</family>
  49. <default>
  50. <family>monospace</family>
  51. </default>
  52. </alias>
  53. <alias>
  54. <family>PowerlineSymbols</family>
  55. <default>
  56. <family>monospace</family>
  57. </default>
  58. </alias>
  59. <alias>
  60. <family>Comic Neue</family>
  61. <default>
  62. <family>cursive</family>
  63. </default>
  64. </alias>
  65. <!-- by default fontconfig assumes any unrecognized font is sans-serif, so -->
  66. <!-- the fonts above now have /both/ families. fix this. -->
  67. <!-- note that "delete" applies to the first match -->
  68. <match>
  69. <test compare="eq" name="family">
  70. <string>sans-serif</string>
  71. </test>
  72. <test compare="eq" name="family">
  73. <string>monospace</string>
  74. </test>
  75. <edit mode="delete" name="family"/>
  76. </match>
  77. <match>
  78. <test compare="eq" name="family">
  79. <string>sans-serif</string>
  80. </test>
  81. <test compare="eq" name="family">
  82. <string>cursive</string>
  83. </test>
  84. <edit mode="delete" name="family"/>
  85. </match>
  86. <!-- comic neue is missing a few glyphs and fontconfig thinkgs it's -->
  87. <!-- unsuitable for english text, oops! fix this forcibly. -->
  88. <!-- once the font is fixed, the above rule is good enough -->
  89. <match>
  90. <test compare="contains" name="lang">
  91. <string>en</string>
  92. </test>
  93. <test name="family">
  94. <string>cursive</string>
  95. </test>
  96. <edit mode="delete_all" name="lang"/>
  97. <edit mode="prepend" name="family">
  98. <string>Comic Neue</string>
  99. </edit>
  100. </match>
  101. <!-- Replace Comic Sans with Comic Neue bold -->
  102. <match>
  103. <test name="family">
  104. <string>Comic Sans MS</string>
  105. </test>
  106. <edit binding="same" mode="assign" name="family">
  107. <string>Comic Neue</string>
  108. </edit>
  109. <edit binding="weak" mode="assign" name="style">
  110. <string>Bold</string>
  111. </edit>
  112. </match>
  113. <!-- Hinting and subpixel rendering -->
  114. <!-- <match target="font"> -->
  115. <!-- <edit mode="assign" name="rgba"> -->
  116. <!-- <const>rgb</const> -->
  117. <!-- </edit> -->
  118. <!-- <edit mode="assign" name="autohint"> -->
  119. <!-- <bool>false</bool> -->
  120. <!-- </edit> -->
  121. <!-- <edit mode="assign" name="hinting"> -->
  122. <!-- <bool>true</bool> -->
  123. <!-- </edit> -->
  124. <!-- <edit mode="assign" name="hintstyle"> -->
  125. <!-- <const>hintslight</const> -->
  126. <!-- </edit> -->
  127. <!-- <edit mode="assign" name="lcdfilter"> -->
  128. <!-- <const>lcdlight</const> -->
  129. <!-- </edit> -->
  130. <!-- <edit mode="assign" name="antialias"> -->
  131. <!-- <bool>true</bool> -->
  132. <!-- </edit> -->
  133. <!-- </match> -->
  134. <!-- <match target="font"> -->
  135. <!-- <edit mode="assign" name="rgba"> -->
  136. <!-- <const>rgb</const> -->
  137. <!-- </edit> -->
  138. <!-- </match> -->
  139. <!-- <match target="font"> -->
  140. <!-- <edit mode="assign" name="hinting"> -->
  141. <!-- <bool>true</bool> -->
  142. <!-- </edit> -->
  143. <!-- </match> -->
  144. <!-- <match target="font"> -->
  145. <!-- <edit mode="assign" name="hintstyle"> -->
  146. <!-- <const>hintslight</const> -->
  147. <!-- </edit> -->
  148. <!-- </match> -->
  149. <!-- <match target="font"> -->
  150. <!-- <edit mode="assign" name="antialias"> -->
  151. <!-- <bool>true</bool> -->
  152. <!-- </edit> -->
  153. <!-- </match> -->
  154. </fontconfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement