ref: c576e2a6b897f17dfd01b2749bb3c42d5367d89e
parent: f632b14246bd6a41ad1da9a94cb17b9d4528130d
author: Dirk-Wilhelm Peters <peters@schwertfische.de>
date: Fri Jul 4 09:04:38 EDT 2014
gen.sh: correct the mapping of Helvetica-Bold This also handles the case where there is no .otf or .ttf files in $FP.
--- a/gen.sh
+++ b/gen.sh
@@ -56,8 +56,8 @@
afmconv AX AvantGarde-DemiOblique $FP/a010035l.afm
afmconv H Helvetica $FP/n019003l.afm
afmconv HI Helvetica-Oblique $FP/n019023l.afm
-afmconv HB Helvetica-Bold $FP/n019044l.afm
-afmconv HX Helvetica-BoldOblique $FP/n019064l.afm
+afmconv HB Helvetica-Bold $FP/n019004l.afm
+afmconv HX Helvetica-BoldOblique $FP/n019024l.afm
afmconv Hr Helvetica-Narrow $FP/n019043l.afm
afmconv Hi Helvetica-Narrow-Oblique $FP/n019063l.afm
afmconv Hb Helvetica-Narrow-Bold $FP/n019044l.afm
@@ -82,7 +82,7 @@
afmconv CB Courier-Bold $FP/n022004l.afm
afmconv CX Courier-BoldOblique $FP/n022024l.afm
afmconv ZI ZapfChancery-MediumItalic $FP/z003034l.afm
-afmconv ZD ZapfDingbats $FP/z003034l.afm
+afmconv ZD ZapfDingbats $FP/d050000l.afm
# For otf and ttf files, we assume the postscript name of the font
# can be obtained by dropping its extension. Otherwise, remove the
@@ -90,8 +90,10 @@
for f in $FP/*.otf $FP/*.ttf
do
- FN="`basename $f .otf`"
- FN="`basename $FN .ttf`"
- echo $FN
- otfconv $FN $f
+ if [ -e "$f" ]; then
+ FN="`basename $f .otf`"
+ FN="`basename $FN .ttf`"
+ echo $FN
+ otfconv $FN $f
+ fi
done