#!/bin/bash : >glyph.arc glyph() { local base="$1" local text="$2" local color="$3" local font="$4" file="$base.x11.64x64.png" 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,-3 \"$text\"" "$file" optipng -o9 -q "$file" >/dev/null cat >>glyph.arc <