summaryrefslogtreecommitdiff
path: root/fonttosfnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'fonttosfnt.c')
-rw-r--r--fonttosfnt.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fonttosfnt.c b/fonttosfnt.c
index 90d3d95..062ef3e 100644
--- a/fonttosfnt.c
+++ b/fonttosfnt.c
@@ -40,7 +40,7 @@ usage(void)
fprintf(stderr, "Usage:\n");
fprintf(stderr,
"fonttosfnt [ -v ] [ -c ] [ -b ] [ -r ] [ -g n ] [ -m n ] -o font.otb "
- "[ -- ] font ...\n");
+ "[ -- ] [ font ] ...\n");
}
int
@@ -106,7 +106,11 @@ main(int argc, char **argv)
font = makeFont();
- while(i < argc) {
+ if(i == argc) {
+ rc = readFile(NULL, font);
+ if(rc != 0)
+ exit(1);
+ } else while(i < argc) {
rc = readFile(argv[i], font);
if(rc != 0)
exit(1);