Advertisement
Guest User

Untitled

a guest
Apr 13th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. <?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  2. <fontconfig>
  3. <dir>~/.fonts</dir>
  4. <cachedir>~/.fontconfig</cachedir>
  5.  
  6. <!-- Hinting Settings -->
  7. <match target="font">
  8. <edit mode="assign" name="hinting">
  9. <bool>true</bool>
  10. </edit>
  11. </match>
  12. <match target="font">
  13. <edit name="autohint" mode="assign">
  14. <bool>false</bool>
  15. </edit>
  16. </match>
  17. <match target="font" >
  18. <edit mode="assign" name="hintstyle">
  19. <const>hintfull</const>
  20. </edit>
  21. </match>
  22. <match target="font">
  23. <edit mode="assign" name="antialias">
  24. <bool>true</bool>
  25. </edit>
  26. </match>
  27.  
  28. <!-- Enable subpixel rendering -->
  29. <match target="font">
  30. <edit name="rgba" mode="assign">
  31. <const>rgb</const>
  32. </edit>
  33. </match>
  34.  
  35. <!-- When using subpixel rendering, lcd filter should be enabled -->
  36. <!-- lcddefault/lcdlight/lcdlegacy/lcdnone -->
  37. <match target="font">
  38. <edit mode="assign" name="lcdfilter">
  39. <const>lcddefault</const>
  40. </edit>
  41. </match>
  42.  
  43. <!-- Don't use the autohinter with subpixel rendering -->
  44. <!-- If autohinter was used, set it to false for bold fonts -->
  45. <!--
  46. <match target="font">
  47. <test name="weight" compare="more">
  48. <const>medium</const>
  49. </test>
  50. <edit name="autohint" mode="assign">
  51. <bool>false</bool>
  52. </edit>
  53. </match>
  54. -->
  55.  
  56. <!-- Exclude a range of fonts for Anti Aliasing -->
  57. <!--
  58. <match target="font">
  59. <test qual="any" name="size" compare="more">
  60. <double>9</double>
  61. </test>
  62. <test qual="any" name="size" compare="less">
  63. <double>12</double>
  64. </test>
  65. <edit name="antialias" mode="assign">
  66. <bool>false</bool>
  67. </edit>
  68. </match>
  69. -->
  70.  
  71. <!-- Replacing Fonts -->
  72. <match target="pattern" name="family" >
  73. <test name="family">
  74. <string>SimSun</string>
  75. <string>NSimSun</string>
  76. <string>宋体</string>
  77. <string>新宋体</string>
  78. </test>
  79. <edit name="family" binding="strong" mode="prepend">
  80. <string>DejaVu Sans</string>
  81. </edit>
  82. </match>
  83.  
  84. <!-- CJK Settings -->
  85. <match target="font">
  86. <test name="lang" compare="contains">
  87. <string>zh</string>
  88. <string>ja</string>
  89. <string>ko</string>
  90. </test>
  91. <test name="spacing" compare="eq">
  92. <const>dual</const>
  93. </test>
  94. <edit name="globaladvance" mode="assign">
  95. <bool>false</bool>
  96. </edit>
  97. <edit name="spacing" mode="assign">
  98. <const>proportional</const>
  99. </edit>
  100. </match>
  101. </fontconfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement