#!/bin/bash # simple script to replace old runes by higher quality graphics (schmorp@schmorp.de) # this is put into the public domain ( while read file text color font; do font=$(fc-list "$font" file | tail -1 | sed -e 's/..$//') convert -size 64x64 xc:none -set hinting on \ -font "$font" -pointsize 64 -fill "$color" -gravity center -draw "text 0,0 \"$text\"" "$file" pngx "$file" >/dev/null done ) <