git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
only remove empty glyphs if they don't have a name
[swftools.git]
/
lib
/
gfxfont.c
diff --git
a/lib/gfxfont.c
b/lib/gfxfont.c
index
8fba3de
..
1646418
100644
(file)
--- a/
lib/gfxfont.c
+++ b/
lib/gfxfont.c
@@
-347,7
+347,7
@@
gfxfont_t* gfxfont_load(char*filename, double quality)
}
l = l->next;
}
}
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;
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.
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);
font->glyphs[font->num_glyphs].unicode = 0;
if(font->glyphs[font->num_glyphs].name) {
free(font->glyphs[font->num_glyphs].name);