FollieHiyuki-dotfiles/home/.local/bin/genfontimage
2021-03-06 22:22:26 +03: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"