dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit fb270569f84f5a5bfc4b63d02d327787915a2a2f
parent bd3534d8b0253388732a84cdfa9d01fc921d65ee
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat, 26 Sep 2020 21:09:56 +0200

add fontconf configuration files

Diffstat:
A.config/fontconfig/conf.d/55-emoji-prepend.conf | 13+++++++++++++
A.config/fontconfig/fonts.conf | 83+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 96 insertions(+), 0 deletions(-)

diff --git a/.config/fontconfig/conf.d/55-emoji-prepend.conf b/.config/fontconfig/conf.d/55-emoji-prepend.conf @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <match> + <!--<test name="prgname"> + <string>application</string> + </test>--> + <edit name="family" mode="prepend" binding="weak"> + <string>Noto Color Emoji</string> + <string>Symbola</string> + </edit> + </match> +</fontconfig> diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf @@ -0,0 +1,83 @@ +<?xml version='1.0'?> +<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> +<fontconfig> + + <!-- Default font (no fc-match pattern) --> + <match> + <edit mode="prepend" name="family"> + <string>Noto Sans</string> + </edit> + </match> + + <!-- Default font for the ja_JP locale (no fc-match pattern) --> + <match> + <test compare="contains" name="lang"> + <string>ja</string> + </test> + <edit mode="prepend" name="family"> + <string>Noto Sans CJK JP</string> + </edit> + </match> + + <!-- Default sans-serif font --> + <match target="pattern"> + <test qual="any" name="family"><string>sans-serif</string></test> + <!--<test qual="any" name="lang"><string>ja</string></test>--> + <edit name="family" mode="prepend" binding="same"><string>Noto Sans</string> </edit> + </match> + + <!-- Default serif fonts --> + <match target="pattern"> + <test qual="any" name="family"><string>serif</string></test> + <edit name="family" mode="prepend" binding="same"><string>Noto Serif</string> </edit> + <edit name="family" mode="append" binding="same"><string>IPAPMincho</string> </edit> + <edit name="family" mode="append" binding="same"><string>HanaMinA</string> </edit> + </match> + + <!-- Default monospace fonts --> + <match target="pattern"> + <test qual="any" name="family"><string>monospace</string></test> + <edit name="family" mode="prepend" binding="same"><string>Noto Sans Mono</string></edit> + <edit name="family" mode="append" binding="same"><string>Inconsolatazi4</string></edit> + <edit name="family" mode="append" binding="same"><string>IPAGothic</string></edit> + </match> + + <!-- Fallback fonts preference order --> + <alias> + <family>sans-serif</family> + <prefer> + <family>Noto Sans</family> + <family>Open Sans</family> + <family>Droid Sans</family> + <family>Ubuntu</family> + <family>Roboto</family> + <family>NotoSansCJK</family> + <family>Source Han Sans JP</family> + <family>IPAPGothic</family> + <family>VL PGothic</family> + <family>Koruri</family> + </prefer> + </alias> + <alias> + <family>serif</family> + <prefer> + <family>Noto Serif</family> + <family>Droid Serif</family> + <family>Roboto Slab</family> + <family>IPAPMincho</family> + </prefer> + </alias> + <alias> + <family>monospace</family> + <prefer> + <family>Noto Sans Mono</family> + <family>Inconsolatazi4</family> + <family>Ubuntu Mono</family> + <family>Droid Sans Mono</family> + <family>Roboto Mono</family> + <family>IPAGothic</family> + <family>Symbola</family> + </prefer> + </alias> + +</fontconfig>