dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 48fccfd40cace1f6867884f64f8a3afb391779fa
parent 70639f0303edbadac2b6aece02f208ad5377489f
Author: Duncaen <mail@duncano.de>
Date:   Fri, 20 Jan 2017 15:41:47 +0100

fonts: add fonts.conf

Diffstat:
fonts.conf | 137+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
install.sh | 11++++++++++-
2 files changed, 147 insertions(+), 1 deletion(-)

diff --git a/fonts.conf 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 @@ -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