shithub: neatmkfn

Download patch

ref: a0bb8b067926bb3882e2950828d24fcb56608665
parent: 255f5bc5964dc335d01bd2694d22de7702787c12
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sat Aug 2 10:23:58 EDT 2014

trfn: minimum kerning value (-k) is in output device units

--- a/gen.sh
+++ b/gen.sh
@@ -38,7 +38,7 @@
 	else
 		echo -e "Open(\"$2\")\nGenerate(\"$AFM\")" | fontforge >/dev/null 2>&1
 	fi
-	cat $AFM | ./mkfn -b -a -r$RES -t $FN -p $FN -k50 | \
+	cat $AFM | ./mkfn -b -a -r$RES -t $FN -p $FN -k5 | \
 		sed "/^ligatures /s/ $LIGIGN//g" >$TP/$FN
 	rm $AFM
 }
--- a/trfn.c
+++ b/trfn.c
@@ -317,7 +317,7 @@
 
 void trfn_kern(char *c1, char *c2, int x)
 {
-	if (WX(x) && abs(WX(x)) >= WX(trfn_kmin))
+	if (WX(x) && abs(WX(x)) >= trfn_kmin)
 		sbuf_printf(&sbuf_kern, "kern %s\t%s\t%d\n", c1, c2, WX(x));
 }