shithub: neatmkfn

Download patch

ref: cc1ce074224ee38bb75d0cedc93a87fd72c6b995
parent: a48fad4b4955a5868a2ad8b52ee7c916023766a3
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sun Sep 8 13:22:43 EDT 2013

mktrfn: show a summary of options

--- a/mktrfn.c
+++ b/mktrfn.c
@@ -82,6 +82,16 @@
 	}
 }
 
+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"
+	"  -s      \tspecial font\n"
+	"  -p name \toverride font postscript name\n"
+	"  -t name \tset font troff name\n"
+	"  -r res  \tset device resolution (720)\n";
+
 int main(int argc, char *argv[])
 {
 	int afm = 0;
@@ -109,7 +119,7 @@
 			trfn_psfont(argv[i][2] ? argv[i] + 2 : argv[++i]);
 			break;
 		default:
-			printf("usage: mktrfn -a -o -t name -p psname\n");
+			printf("%s", usage);
 			return 0;
 		}
 	}