local.conf 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0"?>
  2. <!-- Based on Arch Wiki:
  3. https://wiki.archlinux.org/index.php/Font_configuration/Examples#Chinese
  4. -->
  5. <fontconfig>
  6. <!-- Pixel alignment -->
  7. <match target="font">
  8. <edit name="rgba" mode="assign">
  9. <const>rgb</const>
  10. </edit>
  11. </match>
  12. <!-- Never use embedded bitmap glyph -->
  13. <match target="font">
  14. <edit name="embeddedbitmap" mode="assign">
  15. <bool>false</bool>
  16. </edit>
  17. </match>
  18. <!-- serif -->
  19. <match>
  20. <test qual="any" name="family">
  21. <string>serif</string>
  22. </test>
  23. <edit name="family" mode="prepend" binding="strong">
  24. <string>Noto Serif</string>
  25. </edit>
  26. </match>
  27. <match>
  28. <test name="lang" compare="contains">
  29. <string>zh</string>
  30. </test>
  31. <test name="family">
  32. <string>serif</string>
  33. </test>
  34. <edit name="family" mode="prepend">
  35. <string>Noto Serif CJK SC</string>
  36. </edit>
  37. </match>
  38. <!-- serif -->
  39. <match>
  40. <test qual="any" name="family">
  41. <string>sans-serif</string>
  42. </test>
  43. <edit name="family" mode="prepend" binding="strong">
  44. <string>Noto Sans</string>
  45. </edit>
  46. </match>
  47. <match>
  48. <test name="lang" compare="contains">
  49. <string>zh</string>
  50. </test>
  51. <test name="family">
  52. <string>sans-serif</string>
  53. </test>
  54. <edit name="family" mode="prepend">
  55. <string>Noto Sans CJK SC</string>
  56. </edit>
  57. </match>
  58. <!-- mono -->
  59. <match>
  60. <test name="family">
  61. <string>monospace</string>
  62. </test>
  63. <edit name="family" mode="prepend">
  64. <string>Noto Sans Symbols</string>
  65. </edit>
  66. <edit name="family" mode="prepend">
  67. <string>Noto Sans Symbols2</string>
  68. </edit>
  69. <edit name="family" mode="prepend">
  70. <string>Source Code Pro</string>
  71. </edit>
  72. </match>
  73. <match>
  74. <test qual="any" name="family">
  75. <string>monospace</string>
  76. </test>
  77. <edit name="family" mode="prepend" binding="strong">
  78. <string>Noto Sans Mono</string>
  79. </edit>
  80. </match>
  81. <match>
  82. <test name="lang" compare="contains">
  83. <string>zh</string>
  84. </test>
  85. <test name="family">
  86. <string>monospace</string>
  87. </test>
  88. <edit name="family" mode="prepend">
  89. <string>Noto Sans Mono CJK SC</string>
  90. </edit>
  91. </match>
  92. </fontconfig>