aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-01-20 15:41:47 +0100
committerDuncaen <mail@duncano.de>2017-01-20 15:42:37 +0100
commit48fccfd40cace1f6867884f64f8a3afb391779fa (patch)
tree13d923f1ef5eb85d841cde7b3012b7f1c9a566ba
parent70639f0303edbadac2b6aece02f208ad5377489f (diff)
downloaddotfiles-48fccfd40cace1f6867884f64f8a3afb391779fa.tar.gz
fonts: add fonts.conf
-rw-r--r--fonts.conf137
-rwxr-xr-xinstall.sh11
2 files changed, 147 insertions, 1 deletions
diff --git a/fonts.conf b/fonts.conf
new file mode 100644
index 0000000..b2f8dcb
--- /dev/null
+++ b/fonts.conf
@@ -0,0 +1,137 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <match target="pattern">
+ <test name="family">
+ <string>Times New Roman</string>
+ </test>
+ <edit name="family">
+ <string>serif</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family">
+ <string>Arial</string>
+ </test>
+ <edit name="family">
+ <string>sans-serif</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family">
+ <string>Helvetica</string>
+ </test>
+ <edit name="family">
+ <string>sans-serif</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family">
+ <string>Verdana</string>
+ </test>
+ <edit name="family">
+ <string>sans-serif</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family">
+ <string>Nimbus Sans L</string>
+ </test>
+ <edit name="family">
+ <string>sans-serif</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family">
+ <string>Lucida</string>
+ </test>
+ <edit name="family">
+ <string>sans-serif</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="assign">
+ <string>Liberation Serif</string>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintslight</const>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="assign">
+ <string>Liberation Sans</string>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintslight</const>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family">
+ <string>Liberation Mono</string>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintslight</const>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family">
+ <string>Material Icons</string>
+ </test>
+ <edit name="hintstyle" mode="assign">
+ <const>hintfull</const>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>false</bool>
+ </edit>
+ <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>
+
+ <match target="pattern">
+ <test name="family">
+ <string>Terminus</string>
+ </test>
+ <edit name="hintstyle" mode="assign">
+ <const>hintnone</const>
+ </edit>
+ <edit name="antialias" mode="assign">
+ <bool>false</bool>
+ </edit>
+ <edit name="file">
+ <string>/usr/share/fonts/X11/misc/ter-x12n.pcf.gz</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ </match>
+
+</fontconfig>
diff --git a/install.sh b/install.sh
index c40fdb3..7cecb56 100755
--- a/install.sh
+++ b/install.sh
@@ -5,9 +5,12 @@ msg() { t=$1; shift; printf '%s: %s\n' "$t" "$@"; }
_ln_home() {
[ -z "$2" ] && tgt="$HOME/$1" || tgt="$HOME/$2"
src="$PWD/$1"
- rm -rv "$tgt"
+ [ -e "$tgt" ] && mv -v "$tgt" "$tgt.bak"
ln -sfv "$src" "$tgt"
}
+_mkdir() {
+ mkdir -vp $@
+}
_vim() {
msg "INSTALL" "vim config"
@@ -22,6 +25,11 @@ _xorg() {
_ln_home "Xresources" ".Xresources"
_ln_home "us-intl-german.xmodmap" ".us-intl-german.xmodmap"
}
+_fonts() {
+ msg "INSTALL" "fontconfig config"
+ _mkdir ".config/fontconfig"
+ _ln_home "fonts.conf" ".config/fontconfig/fonts.conf"
+}
_mksh() {
msg "INSTALL" "mksh config"
_ln_home "mkshrc" ".mkshrc"
@@ -71,6 +79,7 @@ _bin
_sv
_git
_xorg
+_fonts
_vim
_void
_ssh