From 11b9978ef1b9da443453e65418d7b7cd6fab5d22 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 24 Nov 2020 18:30:38 +0800 Subject: [PATCH] [bugfix] now it works --- bin/generate-pfa.pe | 2 ++ bin/groff_addfont.sh | 69 +++++++++++++++++++++++++++++++------------- 2 files changed, 51 insertions(+), 20 deletions(-) create mode 100644 bin/generate-pfa.pe mode change 100644 => 100755 bin/groff_addfont.sh diff --git a/bin/generate-pfa.pe b/bin/generate-pfa.pe new file mode 100644 index 0000000..281a0b0 --- /dev/null +++ b/bin/generate-pfa.pe @@ -0,0 +1,2 @@ +Open($1); +Generate($fontname + ".pfa"); diff --git a/bin/groff_addfont.sh b/bin/groff_addfont.sh old mode 100644 new mode 100755 index 4a2a90e..263c653 --- a/bin/groff_addfont.sh +++ b/bin/groff_addfont.sh @@ -4,37 +4,66 @@ set -e # generate pfa -FONTPATH=$1 +if [ "$#" -lt 2 ]; then + CMD=$(basename "$0") + echo "Usage: $CMD <*.ttf/ttc/otf>