… | |
… | |
6 | ( |
6 | ( |
7 | while read file text color font; do |
7 | while read file text color font; do |
8 | font=$(fc-list "$font" file | tail -1 | sed -e 's/..$//') |
8 | font=$(fc-list "$font" file | tail -1 | sed -e 's/..$//') |
9 | convert -size 64x64 xc:none -set hinting on \ |
9 | convert -size 64x64 xc:none -set hinting on \ |
10 | -font "$font" -pointsize 64 -fill "$color" -gravity center -draw "text 0,0 \"$text\"" "$file" |
10 | -font "$font" -pointsize 64 -fill "$color" -gravity center -draw "text 0,0 \"$text\"" "$file" |
11 | pngx "$file" >/dev/null |
11 | optipng -o9 -q "$file" >/dev/null |
12 | done |
12 | done |
13 | ) <<EOF |
13 | ) <<EOF |
14 | rune_frost.x11.64x64.png ⁎ lightblue Everson Mono Unicode |
14 | rune_frost.x11.64x64.png ⁎ lightblue Everson Mono Unicode |
15 | rune_sp_res.x11.64x64.png ⁑ green Everson Mono Unicode |
15 | rune_sp_res.x11.64x64.png ⁑ green Everson Mono Unicode |
16 | drain_magic.x11.64x64.png ⁑ gray70 Everson Mono Unicode |
16 | drain_magic.x11.64x64.png ⁑ gray70 Everson Mono Unicode |