|
From: <cn...@us...> - 2009-06-23 04:54:19
|
Revision: 361
http://hgengine.svn.sourceforge.net/hgengine/?rev=361&view=rev
Author: cnlohr
Date: 2009-06-23 04:54:16 +0000 (Tue, 23 Jun 2009)
Log Message:
-----------
cleanup font size and names of files
Modified Paths:
--------------
Mercury2/tools/fonter/main.cpp
Modified: Mercury2/tools/fonter/main.cpp
===================================================================
--- Mercury2/tools/fonter/main.cpp 2009-06-23 04:53:59 UTC (rev 360)
+++ Mercury2/tools/fonter/main.cpp 2009-06-23 04:54:16 UTC (rev 361)
@@ -8,6 +8,8 @@
# define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
#endif
+#define FONTSIZE 64
+
FILE * fontfile;
int my_write_png( const char * fname, unsigned char * imagedata, int x, int y );
@@ -46,7 +48,7 @@
fprintf( stderr, "Could not open font output file: %s\n", fname );
exit( -1 );
}
- fprintf( fontfile, "%s\n", pngname );
+ fprintf( fontfile, "%s\n%d\n", pngname, FONTSIZE );
my_read_font( argv[1], imagedata, 64, 64, 16, 16 );
my_write_png( pngname, imagedata, 1024, 1024 );
@@ -81,7 +83,7 @@
exit( -1 );
}
- error = FT_Set_Pixel_Sizes( face, 0, 64 );
+ error = FT_Set_Pixel_Sizes( face, 0, FONTSIZE );
if( error )
{
fprintf( stderr, "Error with FT_Set_Pixel_Sizes\n" );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|