User Tools

Site Tools


Sidebar

software:xfonts
  • A custom ~/.config/fontconfig/fonts.conf can contain preference lists:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>Inconsolata</family>
    </prefer>
  </alias>
  <alias>
    <family>serif</family>
    <prefer>
      <family>Source Han Sans CN,思源黑体 CN,Source Han Sans CN Normal,思源黑体 CN Normal</family>
      <family>Caladea</family>
    </prefer>
  </alias>
  <!-- subpixel rendering -->
  <!-- https://wiki.archlinux.org/index.php/Font_configuration#Replace_or_set_default_fonts -->
  <match target="font">
    <edit name="rgba" mode="assign">
      <const>rgb</const>
    </edit>
  </match>
  <match target="font">
    <edit name="lcdfilter" mode="assign">
      <const>lcddefault</const>
    </edit>
  </match>
</fontconfig>
software/xfonts.txt · Last modified: 2017/06/13 10:43 by chris