1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

fontconfig: tweak fonts after Noto fiasco

This commit is contained in:
Joe Groocock 2018-04-12 02:39:34 +01:00
parent 3f16439695
commit 69d884ec5f
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86
11 changed files with 45 additions and 31 deletions

View File

@ -59,11 +59,11 @@ xterm.metaSendsEscape: true
urxvt.termName: xterm-256color
urxvt.font: xft:SauceCodePro Nerd Font:style=regular:size=9
urxvt.imFont: xft:SauceCodePro Nerd Font:style=regular:size=9
urxvt.boldFont: xft:SauceCodePro Nerd Font:style=bold:size=9
urxvt.italicFont: xft:SauceCodePro Nerd Font:style=italic:size=9
urxvt.boldItalicFont: xft:SauceCodePro Nerd Font:style=bold,italic:size=9
urxvt.font: xft:Source Code Pro:style=regular:size=9
urxvt.imFont: xft:Source Code Pro:style=regular:size=9
urxvt.boldFont: xft:Source Code Pro:style=bold:size=9
urxvt.italicFont: xft:Source Code Pro:style=italic:size=9
urxvt.boldItalicFont: xft:Source Code Pro:style=bold,italic:size=9
urxvt.iso14755: false

View File

@ -1,5 +1,5 @@
[global]
font = Noto Sans 10
font = Noto Sans 9.5
# Allow a small subset of html markup:
# <b>bold</b>

View File

@ -1,44 +1,58 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="weak">
<test name="family"><string>Noto Sans</string></test>
<edit name="family" mode="assign" binding="strong">
<string>NotoSans Nerd Font</string>
</edit>
</match>
<match>
<test name="family"><string>Noto Serif</string></test>
<edit name="family" mode="assign" binding="strong">
<string>NotoSerif Nerd Font</string>
</edit>
</match>
<match>
<test name="family"><string>Source Code Pro</string></test>
<edit name="family" mode="assign" binding="strong">
<string>SauceCodePro Nerd Font</string>
</edit>
</match>
<match>
<test qual="any" name="family"><string>sans-serif</string></test>
<edit name="family" mode="prepend" binding="same">
<string>NotoSans Nerd Font</string>
<string>Noto Sans</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<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>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="weak">
<test qual="any" name="family"><string>serif</string></test>
<edit name="family" mode="prepend" binding="same">
<string>NotoSerif Nerd Font</string>
<string>Noto Serif</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="weak">
<string>Sauce Code Pro</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family">
<string>Apple Color Emoji</string>
</test>
<edit name="family" mode="prepend" binding="weak">
<test qual="any" name="family"><string>monospace</string></test>
<edit name="family" mode="prepend" binding="same">
<string>SauceCodePro Nerd Font Mono</string>
<string>Source Code Pro</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match target="font">
<edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>
<test qual="all" name="family" compare="eq"><string>SauceCodePro Nerd Font Mono</string></test>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
</fontconfig>

View File

@ -1,5 +1,5 @@
[options]
font = SauceCodePro 9
font = Source Code Pro 9
scrollback_lines = 1000000
cursor_blink = off
size_hints = true