r5245 - trunk/misc/ttf2conchars
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Dec 17 04:56:32 EST 2008
Author: div0
Date: 2008-12-17 04:56:26 -0500 (Wed, 17 Dec 2008)
New Revision: 5245
Modified:
trunk/misc/ttf2conchars/ttf2conchars.c
Log:
ttf2conchars: add "scale 1" directive
Modified: trunk/misc/ttf2conchars/ttf2conchars.c
===================================================================
--- trunk/misc/ttf2conchars/ttf2conchars.c 2008-12-17 08:09:20 UTC (rev 5244)
+++ trunk/misc/ttf2conchars/ttf2conchars.c 2008-12-17 09:56:26 UTC (rev 5245)
@@ -778,7 +778,8 @@
widthfile = fopen(widthfilename, "w");
if(!widthfile)
err(1, "fopen widthfile");
- fprintf(widthfile, "extraspacing %f ", 0.0);
+ fprintf(widthfile, "extraspacing %f\n", 0.0);
+ fprintf(widthfile, "scale %f\n", 1.0);
for(i = 0; i < 256; ++i)
{
@@ -787,7 +788,7 @@
SDL_Rect dest;
char str[2]; str[0] = i; str[1] = 0;
- if(!(i % 16))
+ if(i && !(i % 16))
fprintf(widthfile, "\n");
fntid = mapFont(differentFonts, &str[0]);
More information about the nexuiz-commits
mailing list