Quote fontface and printf arguments
[llpp.git] / misc / llppepub
blob15bf8fa4ed2727b13d5565a555d180347a7072e6
1 #!/bin/bash
2 # this script uses <(cmd) hence preceding shebang
3 set -eu
5 : ${fontpath="$HOME/.fonts/fantasque/fantasquesansmono-regular-3ze.otf"}
6 fontface() { printf '@font-face { font-family: %s; src: "%s"; } ' $1 "$2"; }
7 all() {
8 fontface serif "$fontpath"
9 fontface sans-serif "$fontpath"
10 fontface monospace "$fontpath"
12 llpp -css <(all) "$@"