unicode-emoji/symbola/generate.sh

18 lines
302 B
Bash
Raw Permalink Normal View History

2013-05-31 18:22:18 +02:00
#!/bin/bash
cat symbols.txt | while read SYM; do
FSYM=""
for SSYM in ${SYM}; do
FSYM=${FSYM}$(perl -C -e "print chr 0x${SSYM}")
done
convert -size 25x25 \
xc:none \
-fill black \
-font Symbola \
2013-05-31 18:22:18 +02:00
-gravity center \
-pointsize 25 \
-annotate +0+0 "${FSYM}" \
PNG:"${SYM,,}.png"
done