Skip to content

Instantly share code, notes, and snippets.

@Yubyf
Created May 8, 2017 01:08
Show Gist options
  • Select an option

  • Save Yubyf/84c955bba8f9d0dba11863f7bd656ec4 to your computer and use it in GitHub Desktop.

Select an option

Save Yubyf/84c955bba8f9d0dba11863f7bd656ec4 to your computer and use it in GitHub Desktop.

Revisions

  1. Yubyf created this gist May 8, 2017.
    43 changes: 43 additions & 0 deletions 100-override-cn.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,43 @@
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>

    <!-- 替换宋体 -->
    <match target="pattern">
    <test name="family" compare="eq">
    <string>extrafont1</string>
    </test>
    <edit name="family" mode="prepend" binding="strong">
    <string>Source Han Serif CN</string>
    </edit>
    </match>
    <match target="pattern">
    <test name="family" compare="eq">
    <string>extrafont3</string>
    </test>
    <edit name="family" mode="prepend" binding="strong">
    <string>FZNewShuSong_GB18030-Z10</string>
    </edit>
    </match>

    <!-- 替换黑体 -->
    <match target="pattern">
    <test name="family" compare="eq">
    <string>extrafont2</string>
    </test>
    <edit name="family" mode="prepend" binding="strong">
    <string>Source Han Sans CN</string>
    </edit>
    </match>

    <!-- 替换楷体 -->
    <match target="pattern">
    <test name="family" compare="eq">
    <string>extrafont4</string>
    </test>
    <edit name="family" mode="prepend" binding="strong">
    <string>FZSongKeBenXiuKaiS-R-GB</string>
    </edit>
    </match>

    </fontconfig>