2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
10 * $Logfile: /Freespace2/code/Fonttool/FontTool.cpp $
15 * Tool for creating/kerning fonts
18 * Revision 1.3 2002/06/09 04:41:16 relnev
19 * added copyright header
21 * Revision 1.2 2002/05/07 03:16:43 theoddone33
22 * The Great Newline Fix
24 * Revision 1.1.1.1 2002/05/03 03:28:08 root
28 * 2 10/24/98 5:15p Dave
30 * 1 10/24/98 4:58p Dave
32 * 4 10/30/97 4:56p John
33 * Fixed up font stuff to build. Fixed bug where it didn't show the last
34 * 3 characters in kerning table.
36 * 3 6/23/97 6:05p Hoffoss
37 * Added stubbs to fix linking errors.
39 * 2 6/05/97 4:53p John
40 * First rev of new antialiased font stuff.
42 * 1 6/02/97 4:04p John
64 char Usage[] = "Usage:\n" \
65 "\nFontTool x.pcx [y.vf]\n" \
66 "\n If you specify a PCX file, then a font will be\n" \
67 " created with the same base name. If you also\n" \
68 " specify a font file, then it will use the kerning\n" \
69 " data from that font file when it creates the new\n" \
70 " font from the PCX file.\n" \
72 "\n If you specify a font file by itself then it will\n" \
73 " allow you to interactively kern that font.\n" \
74 "\nFontTool x.vf y.vf\n" \
75 "\n If you specify two font files, then the kerning\n" \
76 " data from the first font will be copied into the\n" \
86 void demo_set_playback_filter() {}
87 float flFrametime = 0.0f;
89 void freespace_menu_background()
95 int main(int argc, char *argv[] )
102 if ( (argc < 1) || (argc>3) ) {
110 if ( strstr( argv[1], ".pcx" ) )
112 else if ( strstr( argv[1], ".vf" ) )
119 if ( strstr( argv[2], ".pcx" ) )
121 else if ( strstr( argv[2], ".vf" ) )
125 if ( (t1==PCX) && (t2==NONE) )
126 fonttool_create_font( argv[1], NULL );
127 else if ( (t1==PCX) && (t2==FONT) )
128 fonttool_create_font( argv[1], argv[2] );
129 else if ( (t1==FONT) && (t2==NONE) )
130 fonttool_edit_kerning( argv[1] );
131 else if ( (t1==FONT) && (t2==FONT) )
132 fonttool_kerning_copy( argv[1], argv[2] );