2 * $Logfile: /Freespace2/code/Fonttool/FontTool.cpp $
7 * Tool for creating/kerning fonts
10 * Revision 1.1 2002/05/03 03:28:08 root
14 * 2 10/24/98 5:15p Dave
16 * 1 10/24/98 4:58p Dave
18 * 4 10/30/97 4:56p John
19 * Fixed up font stuff to build. Fixed bug where it didn't show the last
20 * 3 characters in kerning table.
22 * 3 6/23/97 6:05p Hoffoss
23 * Added stubbs to fix linking errors.
25 * 2 6/05/97 4:53p John
26 * First rev of new antialiased font stuff.
28 * 1 6/02/97 4:04p John
50 char Usage[] = "Usage:\n" \
51 "\nFontTool x.pcx [y.vf]\n" \
52 "\n If you specify a PCX file, then a font will be\n" \
53 " created with the same base name. If you also\n" \
54 " specify a font file, then it will use the kerning\n" \
55 " data from that font file when it creates the new\n" \
56 " font from the PCX file.\n" \
58 "\n If you specify a font file by itself then it will\n" \
59 " allow you to interactively kern that font.\n" \
60 "\nFontTool x.vf y.vf\n" \
61 "\n If you specify two font files, then the kerning\n" \
62 " data from the first font will be copied into the\n" \
72 void demo_set_playback_filter() {}
73 float flFrametime = 0.0f;
75 void freespace_menu_background()
81 int main(int argc, char *argv[] )
88 if ( (argc < 1) || (argc>3) ) {
96 if ( strstr( argv[1], ".pcx" ) )
98 else if ( strstr( argv[1], ".vf" ) )
105 if ( strstr( argv[2], ".pcx" ) )
107 else if ( strstr( argv[2], ".vf" ) )
111 if ( (t1==PCX) && (t2==NONE) )
112 fonttool_create_font( argv[1], NULL );
113 else if ( (t1==PCX) && (t2==FONT) )
114 fonttool_create_font( argv[1], argv[2] );
115 else if ( (t1==FONT) && (t2==NONE) )
116 fonttool_edit_kerning( argv[1] );
117 else if ( (t1==FONT) && (t2==FONT) )
118 fonttool_kerning_copy( argv[1], argv[2] );