git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
267dd21
)
only remove empty glyphs if they don't have a name
author
kramm
<kramm>
Wed, 7 Dec 2005 19:39:33 +0000
(19:39 +0000)
committer
kramm
<kramm>
Wed, 7 Dec 2005 19:39:33 +0000
(19:39 +0000)
lib/gfxfont.c
patch
|
blob
|
history
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);