Last active
February 17, 2023 10:13
-
-
Save yanyongyu/6b4a6a839c4b15329c5555409aeaf587 to your computer and use it in GitHub Desktop.
monospace font family config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<alias binding="strong"> | |
<family>monospace</family> | |
<prefer><family>FiraCode Nerd Font Mono</family></prefer> | |
<default><family>Consolas</family></default> | |
</alias> | |
</fontconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<match> | |
<test name="family"> | |
<string>sans-serif</string> | |
</test> | |
<edit name="family" mode="assign" binding="strong"> | |
<string>思源黑体 CN</string> | |
</edit> | |
</match> | |
<dir>~/.fonts</dir> | |
</fontconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<!-- | |
Color Emoji Font Configuration. | |
Usage: | |
0. Ensure that the Noto fonts are installed on your machine. | |
1. Install this file to ~/.config/fontconfig/conf.d/99-emoji.conf | |
2. Run `fc-cache` | |
--> | |
<fontconfig> | |
<alias binding="strong"> | |
<family>emoji</family> | |
<prefer><family>Segoe UI Emoji</family></prefer> | |
<default><family>Noto Color Emoji</family></default> | |
</alias> | |
<match target="pattern"> | |
<test name="family"><string>sans</string></test> | |
<edit name="family" mode="append" binding="strong"> | |
<string>emoji</string> | |
</edit> | |
</match> | |
<match target="pattern"> | |
<test name="family"><string>serif</string></test> | |
<edit name="family" mode="append" binding="strong"> | |
<string>emoji</string> | |
</edit> | |
</match> | |
<match target="pattern"> | |
<test name="family"><string>sans-serif</string></test> | |
<edit name="family" mode="append" binding="strong"> | |
<string>emoji</string> | |
</edit> | |
</match> | |
<match target="pattern"> | |
<test name="family"><string>monospace</string></test> | |
<edit name="family" mode="append" binding="strong"> | |
<string>emoji</string> | |
</edit> | |
</match> | |
</fontconfig> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment