git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added null writer.
[swftools.git]
/
lib
/
example
/
demofont.c
diff --git
a/lib/example/demofont.c
b/lib/example/demofont.c
index
8d85945
..
e48b168
100644
(file)
--- a/
lib/example/demofont.c
+++ b/
lib/example/demofont.c
@@
-109,12
+109,14
@@
SWFFONT * Font_Demo_Font(U16 id)
f->id = id;
f->version = 1;
f->name = strdup("Demo Font");
f->id = id;
f->version = 1;
f->name = strdup("Demo Font");
- f->flags = 0x00;
+ f->style = 0x00;
+ f->encoding = 0x00;
f->numchars = 6;
f->maxascii = 256;
f->glyph = (SWFGLYPH*)malloc(sizeof(SWFGLYPH)*6);
f->glyph2ascii = (U16*)malloc(sizeof(U16)*6);
f->ascii2glyph = (int*)malloc(sizeof(int)*256);
f->numchars = 6;
f->maxascii = 256;
f->glyph = (SWFGLYPH*)malloc(sizeof(SWFGLYPH)*6);
f->glyph2ascii = (U16*)malloc(sizeof(U16)*6);
f->ascii2glyph = (int*)malloc(sizeof(int)*256);
+ memset(f->ascii2glyph, -1, sizeof(int)*256);
addGlyph(f, 0, 102, 64, &Glyphs_Demo_Font[0x0000], 872); // f
addGlyph(f, 1, 108, 53, &Glyphs_Demo_Font[0x006d], 452); // l
addGlyph(f, 0, 102, 64, &Glyphs_Demo_Font[0x0000], 872); // f
addGlyph(f, 1, 108, 53, &Glyphs_Demo_Font[0x006d], 452); // l