-.TH font2swf "1" "January 2003" "font2swf" "swftools"
+.TH font2swf "1" "April 2003" "font2swf" "swftools"
.SH NAME
font2swf - convert Type 1 Font files to SWF
.SH Synopsis
.B font2swf font.afm
.SH DESCRIPTION
This tools converts Type 1 Fonts to SWF.
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Print short help message and exit
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+Be verbose. Use more than one -v for greater effect.
+.TP
+\fB\-o\fR, \fB\-\-output\fR \fIfilename\fR
+Write output to file \fIfilename\fR
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+Print version info and exit
.SH BUGS
.PP
TrueType fonts don't work yet.
.TP
---help doesn't work.
-.TP
-The manpage could be a little more helpful. ;)
.SH AUTHOR
printf("\n");
printf("\t-h , --help\t\t Print help and exit\n");
printf("\t-o , --output filename\t set output filename\n");
+ printf("\t-v , --verbose\t\t Be more verbose\n");
printf("\t-V , --version\t\t Print program version and exit\n");
}
int args_callback_command(char*name,char*val)
char cwd[128];
getcwd(cwd, 128);
processargs(argc, argv);
+ if(!all && !filenum) {
+ fprintf(stderr, "You must supply a filename.\n");
+ exit(1);
+ }
//TODO: use tempnam here. Check if environment already contains a
//T1LIB_CONFIG.
putenv( "T1LIB_CONFIG=/tmp/t1lib.config.tmp");