Last active
June 6, 2021 06:23
-
-
Save lyshie/e8d35104c2385009837ab3eb00821444 to your computer and use it in GitHub Desktop.
Convert TTF (True Type Font) to PNG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
chars=$(cat ../10.txt | fold -w1 | sort | uniq) | |
for c in $chars; do | |
convert -background none -fill red -font /opt/local/fonts/lyshie/TW-Kai-98_1.ttf -pointsize 64 label:"$c" "$c.png" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment