Skip to content

Instantly share code, notes, and snippets.

@cosven cosven/fonts.conf
Created Jul 17, 2018

Embed
What would you like to do?
KDE 下 fonts.conf 配置示例,有两个效果:让 chromium 正确的显示中文字体;konsole 正确的显示中文字体,并且支持显示 Emoji
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- <dir>~/.fonts</dir> -->
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif CJK SC</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans CJK SC</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Ubuntu Mono</family>
<family>Noto Sans CJK SC</family>
<family>Noto Serif CJK SC</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<!-- Do not allow any app to use Symbola, ever -->
<selectfont>
<rejectfont>
<pattern>
<patelt name="family">
<string>Symbola</string>
</patelt>
</pattern>
</rejectfont>
</selectfont>
</fontconfig>
@cosven

This comment has been minimized.

Copy link
Owner Author

commented Jul 17, 2018

相关博客:http://cosven.me/blogs/72 ,里面讲了这样配置的原因。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.