summaryrefslogtreecommitdiff
path: root/src/shared/cube2font.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/cube2font.c')
-rw-r--r--src/shared/cube2font.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/shared/cube2font.c b/src/shared/cube2font.c
index bbd8878..c411862 100644
--- a/src/shared/cube2font.c
+++ b/src/shared/cube2font.c
@@ -530,20 +530,11 @@ int main(int argc, char **argv) {
}
}
if(rh > 0) numtex++;
-#if 0
- if(sw <= 0) {
-
- if(FT_Load_Char(f, ' ', FT_LOAD_DEFAULT))
- fatal("cube2font: failed loading space character");
- sw = (f->glyph->advance.x+0x3F)>>6;
- }
-#endif
if(sh <= 0) sh = y2 - y1;
if(sw <= 0) sw = sh/3;
writetexs(argv[2], chars, numchars, numtex, tw, th);
writecfg(argv[2], chars, numchars, x1, y1, x2, y2, sw, sh, argc, argv);
- for(i = 0; i < numchars; i++) {
-
+ for(i = 0; i < numchars; i++) {
if(chars[i].alpha != chars[i].color) FT_Done_Glyph((FT_Glyph)chars[i].alpha);
FT_Done_Glyph((FT_Glyph)chars[i].color);
}