diff options
author | Freya Murphy <freya@freyacat.org> | 2024-05-16 09:56:22 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-05-16 09:56:22 -0400 |
commit | ecae444e6b9f7b7b03350efcbcb601cc77234ac8 (patch) | |
tree | 6b76fb6203520fa7d65d94c2b540c7ef79dc80d1 /fconv | |
parent | aaa (diff) | |
download | scripts-ecae444e6b9f7b7b03350efcbcb601cc77234ac8.tar.gz scripts-ecae444e6b9f7b7b03350efcbcb601cc77234ac8.tar.bz2 scripts-ecae444e6b9f7b7b03350efcbcb601cc77234ac8.zip |
recert, fconv
Diffstat (limited to 'fconv')
-rwxr-xr-x | fconv | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +#!/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" |