scripts/fconv
2024-05-16 09:56:22 -04:00

21 lines
326 B
Bash
Executable file

#!/bin/sh
chk_command() {
if ! command -v "$1" > /dev/null; then
>&2 echo "error: command '$1' could not be found"
exit 1
fi
}
chk_command "fontforge"
usage() {
printf "usage: fconv FONT_SRC FONT_DST\n"
}
if [ "$#" -ne 2 ]; then
usage
exit 1
fi
fontforge -lang=ff -c 'Open($1); Generate($2); Close();' "$1" "$2"