2 * $Logfile: /Freespace2/code/Fonttool/FontTool.cpp $
7 * Tool for creating/kerning fonts
10 * Revision 1.2 2002/05/07 03:16:43 theoddone33
11 * The Great Newline Fix
13 * Revision 1.1.1.1 2002/05/03 03:28:08 root
17 * 2 10/24/98 5:15p Dave
19 * 1 10/24/98 4:58p Dave
21 * 4 10/30/97 4:56p John
22 * Fixed up font stuff to build. Fixed bug where it didn't show the last
23 * 3 characters in kerning table.
25 * 3 6/23/97 6:05p Hoffoss
26 * Added stubbs to fix linking errors.
28 * 2 6/05/97 4:53p John
29 * First rev of new antialiased font stuff.
31 * 1 6/02/97 4:04p John
53 char Usage[] = "Usage:\n" \
54 "\nFontTool x.pcx [y.vf]\n" \
55 "\n If you specify a PCX file, then a font will be\n" \
56 " created with the same base name. If you also\n" \
57 " specify a font file, then it will use the kerning\n" \
58 " data from that font file when it creates the new\n" \
59 " font from the PCX file.\n" \
61 "\n If you specify a font file by itself then it will\n" \
62 " allow you to interactively kern that font.\n" \
63 "\nFontTool x.vf y.vf\n" \
64 "\n If you specify two font files, then the kerning\n" \
65 " data from the first font will be copied into the\n" \
75 void demo_set_playback_filter() {}
76 float flFrametime = 0.0f;
78 void freespace_menu_background()
84 int main(int argc, char *argv[] )
91 if ( (argc < 1) || (argc>3) ) {
99 if ( strstr( argv[1], ".pcx" ) )
101 else if ( strstr( argv[1], ".vf" ) )
108 if ( strstr( argv[2], ".pcx" ) )
110 else if ( strstr( argv[2], ".vf" ) )
114 if ( (t1==PCX) && (t2==NONE) )
115 fonttool_create_font( argv[1], NULL );
116 else if ( (t1==PCX) && (t2==FONT) )
117 fonttool_create_font( argv[1], argv[2] );
118 else if ( (t1==FONT) && (t2==NONE) )
119 fonttool_edit_kerning( argv[1] );
120 else if ( (t1==FONT) && (t2==FONT) )
121 fonttool_kerning_copy( argv[1], argv[2] );