only remove empty glyphs if they don't have a name
authorkramm <kramm>
Wed, 7 Dec 2005 19:39:33 +0000 (19:39 +0000)
committerkramm <kramm>
Wed, 7 Dec 2005 19:39:33 +0000 (19:39 +0000)
lib/gfxfont.c

index 8fba3de..1646418 100644 (file)
@@ -347,7 +347,7 @@ gfxfont_t* gfxfont_load(char*filename, double quality)
                }
                l = l->next;
            }
-           if(!ok) {
+           if(!ok && !(name)) {
                gfxline_free(font->glyphs[font->num_glyphs].line);
                font->glyphs[font->num_glyphs].line = 0;
                font->glyphs[font->num_glyphs].advance = 0;
@@ -357,8 +357,7 @@ gfxfont_t* gfxfont_load(char*filename, double quality)
                   have unicode indices attached to them.
                   Remove that information, in order to not confuse
                   any converter applications.
-
-                   TODO: what about space characters? */
+                   */
                font->glyphs[font->num_glyphs].unicode = 0;
                if(font->glyphs[font->num_glyphs].name) {
                    free(font->glyphs[font->num_glyphs].name);