To use different font (i.e. not Charis SIL)
Unified · Split
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | # this script uses <(cmd) and quoted $@, hence preceding shebang | ||
| 3 | set -eu | ||
| 4 | |||
| 5 | : ${fontpath="$HOME/.fonts/fantasque/fantasquesansmono-regular-3ze.otf"} | ||
| 6 | fontface() { echo "@font-face { font-family: $1; src: \"$2\"; }"; } | ||
| 7 | all() { | ||
| 8 | fontface serif $fontpath | ||
| 9 | fontface sans-serif $fontpath | ||
| 10 | fontface monospace $fontpath | ||
| 11 | } | ||
| 12 | llpp -css <(all) "$@" | ||