# Linux fontconfig fonts.conf

Linux fontconfig fonts.conf

  1. vim $HOME/.config/fontconfig/fonts.conf 按自己喜好去修改对应的字体

    <?xml version='1.0'?>
    <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
    <fontconfig>
      <alias>
        <family>serif</family>
        <prefer>
            <family>Source Han Sans CN</family>
            <family>Microsoft Sans Serif</family>
            <family>Microsoft YaHei</family>
    
          <family>Noto Serif</family>
    
          <family>Noto Serif CJK SC</family>
          <family>Noto Serif CJK TC</family>
          <family>Noto Serif CJK JP</family>
          <family>Noto Serif CJK KR</family>
          <family>Noto Color Emoji</family>
          <family>Noto Emoji</family>
        </prefer>
      </alias>
      <alias>
        <family>sans-serif</family>
        <prefer>
            <family>Microsoft Sans Serif</family>
    <family>Source Han Sans CN</family>
    <family>Microsoft YaHei</family>
           <family>Noto Sans</family>
          <family>Noto Sans CJK SC</family>
          <family>Noto Sans CJK TC</family>
          <family>Noto Sans CJK JP</family>
          <family>Noto Sans CJK KR</family>
          <family>Noto Color Emoji</family>
          <family>Noto Emoji</family>
        </prefer>
      </alias>
      <alias>
        <family>sans-sans</family>
        <prefer>
    <family>Source Han Sans CN</family>
    <family>Microsoft YaHei</family>
          <family>Noto Sans CJK SC</family>
          <family>Noto Sans CJK TC</family>
          <family>Noto Sans CJK JP</family>
          <family>Noto Sans CJK KR</family>
          <family>Noto Color Emoji</family>
          <family>Noto Emoji</family>
        </prefer>
      </alias>
      <alias>
        <family>tahoma</family>
        <prefer>
          <family>Noto Sans CJK SC</family>
          <family>Noto Color Emoji</family>
          <family>Noto Emoji</family>
        </prefer>
      </alias>
      <alias>
        <family>monospace</family>
        <prefer>
            <family>WenQuanYi Zen Hei Mono</family>
          <family>Fira Code</family>
          <family>Noto Sans CJK SC</family>
          <family>Noto Color Emoji</family>
          <family>Noto Emoji</family>
          <family>Noto Sans Mono</family>
          <family>DejaVu Sans Mono</family>
        </prefer>
      </alias>
    
      <alias>
        <family>emoji</family>
        <default>
          <family>Noto Color Emoji</family>
        </default>
      </alias>
    
      <alias>
        <family>Apple Color Emoji</family>
        <prefer>
          <family>Noto Color Emoji</family>
        </prefer>
        <default>
          <family>sans-serif</family>
        </default>
      </alias>
      <alias>
        <family>Segoe UI Emoji</family>
        <prefer>
          <family>Noto Color Emoji</family>
        </prefer>
        <default>
          <family>sans-serif</family>
        </default>
      </alias>
    
      <match target="font">
        <edit name="antialias" mode="assign">
          <bool>true</bool>
        </edit>
        <edit name="rgba" mode="assign">
          <const>rgb</const>
        </edit>
        <edit name="hinting" mode="assign">
          <bool>false</bool>
        </edit>
        <edit name="hintstyle" mode="assign">
          <const>hintnone</const>
        </edit>
      </match>
    </fontconfig>
    
本文版权归 123456.blog 所有
转载请附上原文出处链接和本声明
本文链接:
数字工·「」· https://123456.blog ip: 34.225.194.102
Copyright © 2022 Hotpot. All rights reserved. Made with ❤ , 3Q ; Deployed: Kubernetes(k8s),Docker
Design by HotpoT; VvE3 ,NuxT3 123456.blog@0.1.0