ref: 09930a50933dd55267e4859f54034c75d8ffa206
parent: 52ea8a40d0e0bd35b6226bf77364864ee0b661aa
author: Ali Gholami Rudi <ali@rudi.ir>
date: Mon Apr 2 08:16:35 EDT 2018
gen.sh: pass font path to mkfn for Type 1 fonts
--- a/gen.sh
+++ b/gen.sh
@@ -22,7 +22,10 @@
afmconv()
{
echo $1
- cat $2 | ./mkfn -a -b -r$RES -t "$1" -f "$2" $3 $4 $5 $6 $7 | \
+ T1="`dirname $2`/`basename $2 .afm`.t1"
+ test -f "$T1" || T1="`dirname $2`/`basename $2 .afm`.pfa"
+ test -f "$T1" || T1="`dirname $2`/`basename $2 .afm`.pfb"
+ cat $2 | ./mkfn -a -b -r$RES -t$1 -f "$T1" $3 $4 $5 $6 $7 | \
sed "/^ligatures /s/ $LIGIGN//g" >$TP/$1
}
@@ -30,7 +33,7 @@
ttfconv()
{
echo $1
- cat $2 | ./mkfn -b -l -o -r$RES $SCR -t $1 -f "$2" $3 $4 $5 $6 $7 | \
+ cat $2 | ./mkfn -b -l -o -r$RES $SCR -t$1 -f "$2" $3 $4 $5 $6 $7 | \
sed "/^ligatures /s/ $LIGIGN//g" >$TP/$1
}