Agregar fontconfig, usar en foot

This commit is contained in:
Cat /dev/Nulo 2021-11-22 12:28:35 -03:00
parent 500723766f
commit 798ffc60b8
2 changed files with 106 additions and 5 deletions

View file

@ -0,0 +1,102 @@
<?xml version="1.0"?>
<!-- From https://git.sr.ht/~leon_plickat/river-config/tree/master/item/fontconfig/fonts.conf -->
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Anti-aliasing -->
<match target="pattern">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
</match>
<!-- Hintingstyle -->
<match target="pattern">
<edit name="force_hintstyle" mode="assign"><string>hintslight</string></edit>
</match>
<!-- Force autohint, except for well hinted fonts -->
<match target="pattern">
<edit name="force_autohint" mode="assign"><bool>false</bool></edit>
</match>
<!-- No font smoothing -->
<match target="pattern">
<edit name="force_bw" mode="assign"><bool>false</bool></edit>
</match>
<match target="pattern">
<edit name="force_bw_monospace" mode="assign"><bool>false</bool></edit>
</match>
<!-- LCD filter -->
<match target="pattern">
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
</match>
<!-- Sub-pixel order -->
<match target="pattern">
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
<!-- Embedded bitmap -->
<match target="font">
<edit name="embeddedbitmap" mode="assign"><bool>false</bool></edit>
</match>
<match target="font">
<test name="lang" compare="contains"><string>ja</string></test>
<edit name="embeddedbitmap" mode="assign"><bool>true</bool></edit>
</match>
<match target="font">
<test name="lang" compare="contains"><string>ko</string></test>
<edit name="embeddedbitmap" mode="assign"><bool>true</bool></edit>
</match>
<match target="font">
<test name="lang" compare="contains"><string>zh-CN</string></test>
<edit name="embeddedbitmap" mode="assign"><bool>true</bool></edit>
</match>
<match target="font">
<test name="lang" compare="contains"><string>zh-TW</string></test>
<edit name="embeddedbitmap" mode="assign"><bool>true</bool></edit>
</match>
<match target="font">
<test name="lang" compare="contains"><string>zh-HK</string></test>
<edit name="embeddedbitmap" mode="assign"><bool>true</bool></edit>
</match>
<match target="font">
<test name="lang" compare="contains"><string>zh-SG</string></test>
<edit name="embeddedbitmap" mode="assign"><bool>true</bool></edit>
</match>
<!-- Metric compatible families -->
<match target="pattern">
<edit name="search_metric_aliases" mode="assign"><bool>true</bool></edit>
</match>
<!-- TODO configure some metric aliases -->
<!-- Set default monospace font -->
<alias>
<family>monospace</family>
<prefer><family>IBM Plex Mono</family></prefer>
</alias>
<alias>
<family>IBM Plex Mono</family>
<default><family>monospace</family></default>
</alias>
<!-- Set default sans-serif font -->
<alias>
<family>sans-serif</family>
<prefer><family>Inter</family></prefer>
</alias>
<alias>
<family>Inter</family>
<default><family>sans-serif</family></default>
</alias>
</fontconfig>

View file

@ -11,12 +11,11 @@ lines = 10000
hide-when-typing=yes hide-when-typing=yes
[main] [main]
font=Hack:pixelsize=15 font=monospace:size=10
font-bold=Hack:style=Bold:pixelsize=15 line-height=16
font-italic=Hack:style=Italic:pixelsize=15 vertical-letter-offset=2
font-bold-italic=Hack:style=Bold Italic:pixelsize=15
pad=5x5 pad=5x5 center
" > ~/.config/foot/foot.ini " > ~/.config/foot/foot.ini
rose_pine () { rose_pine () {