FollieHiyuki-dotfiles/home/.local/bin/genfontimage
2021-10-17 21:47:45 +07:00

14 lines
413 B
Bash
Executable File

#!/bin/sh
PREVIEW_TEXT="ABCDEFGHIJKLM\nNOPQRSTUVWXYZ\nabcdefghijklm\nnopqrstuvwxyz\n1234567890\n!@$\%<>(){}[]\n== != => <=\n愛してるおかえりなさい\n      \n😀👌🙋🐱🦀⛈ 🏀🛠"
BG="#2e3440"
FG="#eceff4"
convert -size 800x800 xc:"$BG" \
-gravity center \
-pointsize 40 \
-font "$1" \
-fill "$FG" \
-annotate +0+0 "$PREVIEW_TEXT" \
-flatten "$2"