shithub: neatmkfn

Download patch

ref: 53d774f598ab4e2d83d2493abb0eeacd6e59c1d8
parent: 562f75d41c37b75af3a25fa3c326b96b26c235ac
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Feb 21 11:32:53 EST 2014

mktrfn: assume afm by default

--- a/mktrfn.c
+++ b/mktrfn.c
@@ -1,7 +1,7 @@
 /*
  * mktrfn - produce troff font descriptions
  *
- * Copyright (C) 2012-2013 Ali Gholami Rudi <ali at rudi dot ir>
+ * Copyright (C) 2012-2014 Ali Gholami Rudi <ali at rudi dot ir>
  *
  * This program is released under the Modified BSD license.
  */
@@ -129,8 +129,8 @@
 static char *usage =
 	"Usage: mktrfn [options] <input >output\n"
 	"Options:\n"
-	"  -o      \tread the output of otfdump for otf and ttf files (default)\n"
-	"  -a      \tread an AFM file\n"
+	"  -a      \tread an AFM file (default)\n"
+	"  -o      \tread the output of otfdump\n"
 	"  -s      \tspecial font\n"
 	"  -p name \toverride font postscript name\n"
 	"  -t name \tset font troff name\n"
@@ -140,7 +140,7 @@
 
 int main(int argc, char *argv[])
 {
-	int afm = 0;
+	int afm = 1;
 	int i = 1;
 	int res = 720;
 	int spc = 0;