summaryrefslogtreecommitdiff
path: root/fconv
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xfconv21
1 files changed, 21 insertions, 0 deletions
diff --git a/fconv b/fconv
new file mode 100755
index 0000000..74335f0
--- /dev/null
+++ b/fconv
@@ -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"