mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
fontconfig: disable hinting on sans-serif fonts
Hinting apparently makes Chrom{e,ium}/Electron display fonts horribly, whilst everything else ever is fine with it on. Re-organise and tidy up fontconfig slightly. Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
parent
524e5132ba
commit
d6f2800ddd
@ -8,7 +8,11 @@
|
||||
<string>Noto Color Emoji</string>
|
||||
<string>FontAwesome 5 Pro Light</string>
|
||||
</edit>
|
||||
|
||||
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
|
||||
<edit mode="assign" name="hinting"><bool>false</bool></edit>
|
||||
</match>
|
||||
|
||||
<match>
|
||||
<test qual="any" name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="prepend" binding="strong">
|
||||
@ -17,6 +21,7 @@
|
||||
<string>FontAwesome 5 Pro Light</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<match>
|
||||
<test qual="any" name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="prepend" binding="strong">
|
||||
@ -25,6 +30,20 @@
|
||||
<string>FontAwesome 5 Pro Light</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<match>
|
||||
<test qual="all" name="family" compare="eq"><string>Noto Sans</string></test>
|
||||
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
|
||||
</match>
|
||||
|
||||
<match>
|
||||
<test qual="all" name="family" compare="eq"><string>Source Code Pro</string></test>
|
||||
<edit name="antialias" mode="assign_replace"><bool>false</bool></edit>
|
||||
<edit name="hintstyle" mode="assign_replace"><const>hintfull</const></edit>
|
||||
<edit name="lcdfilter" mode="assign_replace"><const>lcddefault</const></edit>
|
||||
<edit name="rgba" mode="assign_replace"><const>rgb</const></edit>
|
||||
</match>
|
||||
|
||||
<alias>
|
||||
<family>SF Mono</family>
|
||||
<accept>
|
||||
@ -32,13 +51,8 @@
|
||||
</accept>
|
||||
</alias>
|
||||
|
||||
<match target="font">
|
||||
<test qual="all" name="family" compare="eq"><string>Noto Sans</string></test>
|
||||
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
|
||||
</match>
|
||||
<match target="font">
|
||||
<test qual="all" name="family" compare="eq"><string>Source Code Pro</string></test>
|
||||
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
|
||||
<match>
|
||||
<edit name="antialias" mode="assign"><bool>true</bool></edit>
|
||||
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
|
||||
<edit name="rgba" mode="assign"><const>rgb</const></edit>
|
||||
</match>
|
||||
|
Loading…
Reference in New Issue
Block a user