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);
+ 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