]> icculus.org git repositories - taylor/freespace2.git/blob - src/fonttool/fontkerncopy.cpp
clean up stats saving a bit more
[taylor/freespace2.git] / src / fonttool / fontkerncopy.cpp
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
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
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/Fonttool/FontKernCopy.cpp $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Tool for copying font kerning info
16  *
17  * $Log$
18  * Revision 1.3  2003/01/30 20:03:48  relnev
19  * various files ported needed for fonttool.  There is a bug where on exit it segfaults in SDL_GL_SwapBuffers, I'm probably missing something (don't know what) but it works fine otherwise (Taylor Richards)
20  *
21  * Revision 1.2  2002/06/09 04:41:16  relnev
22  * added copyright header
23  *
24  * Revision 1.1.1.1  2002/05/03 03:28:08  root
25  * Initial import.
26  *
27  * 
28  * 2     10/24/98 5:15p Dave
29  * 
30  * 1     10/24/98 4:58p Dave
31  * 
32  * 2     6/05/97 4:53p John
33  * First rev of new antialiased font stuff.
34  * 
35  * 1     6/02/97 4:04p John
36  *
37  * $NoKeywords: $
38  */
39
40 #include <stdlib.h>
41 #include <stdio.h>
42 #ifndef PLAT_UNIX
43 #include <io.h>
44 #include <conio.h>
45 #endif
46
47 #include "pstypes.h"
48 #include "osapi.h"
49 #include "cfile.h"
50 #include "2d.h"
51 #include "key.h"
52 #include "mouse.h"
53 #include "palman.h"
54 #include "timer.h"
55
56 #include "fonttool.h"
57
58 font fnt1, fnt2;
59
60 void fonttool_kerning_copy( char *fname1, char *fname2 )
61 {
62         printf( "Copying kerning data from %s to %s\n", fname1, fname2 );
63
64         fonttool_read( fname1, &fnt1 );
65         fonttool_read( fname2, &fnt2 );
66         fonttool_copy_kern( &fnt1, &fnt2 );
67
68         fonttool_dump( fname2, &fnt2 );
69
70         exit(0);
71 }
72