fontconfig: Add fonts.conf. Ignored from other than working machines
This commit is contained in:
parent
b030c8d89b
commit
c5b3bc4cb3
@ -10,6 +10,7 @@ README.md
|
||||
{{- if (and (ne .chezmoi.hostname "arch") (ne .chezmoi.hostname "buzz")) }}
|
||||
.config/alacritty/alacritty.toml
|
||||
.config/dunst
|
||||
.config/fontconfig
|
||||
{{- end }}
|
||||
|
||||
{{- if eq .chezmoi.username "root" }}
|
||||
|
132
dot_config/fontconfig/fonts.conf
Normal file
132
dot_config/fontconfig/fonts.conf
Normal file
@ -0,0 +1,132 @@
|
||||
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
<match target="font">
|
||||
<edit mode="assign" name="antialias">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit mode="assign" name="hinting">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit mode="assign" name="hintstyle">
|
||||
<const>hintfull</const>
|
||||
</edit>
|
||||
<edit mode="assign" name="lcdfilter">
|
||||
<const>lcddefault</const>
|
||||
</edit>
|
||||
<edit mode="assign" name="rgba">
|
||||
<const>rgb</const>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit mode="prepend" binding="weak" name="family">
|
||||
<string>Emoji</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family">
|
||||
<string>serif</string>
|
||||
</test>
|
||||
<edit mode="prepend" binding="weak" name="family">
|
||||
<string>Emoji</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family">
|
||||
<string>monospace</string>
|
||||
</test>
|
||||
<edit mode="prepend" binding="weak" name="family">
|
||||
<string>Emoji</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family">
|
||||
<string>Apple Color Emoji</string>
|
||||
</test>
|
||||
<edit mode="prepend" binding="weak" name="family">
|
||||
<string>Emoji</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="family">
|
||||
<string>Helvetica</string>
|
||||
</test>
|
||||
<edit mode="assign" name="family">
|
||||
<string>DejaVu Sans</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family">
|
||||
<string>Source Code Pro</string>
|
||||
</test>
|
||||
<edit mode="prepend" binding="weak" name="family">
|
||||
<string>Source Han Code JP</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family">
|
||||
<string>Source Code Pro</string>
|
||||
</test>
|
||||
<edit mode="prepend" binding="weak" name="family">
|
||||
<string>Emoji</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family">
|
||||
<string>Source Code Pro</string>
|
||||
</test>
|
||||
<edit mode="append" binding="weak" name="family">
|
||||
<string>FiraCode Nerd Font</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family">
|
||||
<string>Source Han Code JP</string>
|
||||
</test>
|
||||
<edit mode="append" binding="weak" name="family">
|
||||
<string>FiraCode Nerd Font</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test qual="any" name="family">
|
||||
<string>Courier New</string>
|
||||
</test>
|
||||
<edit mode="assign" binding="same" name="family">
|
||||
<string>Source Han Code JP</string>
|
||||
</edit>
|
||||
</match>
|
||||
<alias>
|
||||
<family>Source Han Sans</family>
|
||||
<prefer>
|
||||
<family>Source Han Sans JP</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>Source Han Serif</family>
|
||||
<prefer>
|
||||
<family>Source Han Serif JP</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<dir>~/.fonts</dir>
|
||||
<!-- Fallback fonts preference order -->
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Source Han Sans JP</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>Source Han Serif JP</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>Source Han Code JP</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
</fontconfig>
|
Loading…
Reference in New Issue
Block a user