f->glyph[i].gid = gid;
f->glyph[i].shape = s;
s->bitlen = bitlen;
- s->bits.fill = 1;
+ s->bits.fill = 1;
memcpy(s->data,data,l);
}
if (!(f=malloc(sizeof(SWFFONT)))) return NULL;
memset(f,0x00,sizeof(SWFFONT));
f->id = id;
+ f->version = 1;
f->name = strdup("Demo Font");
- f->flags = 0x10;
+ f->flags = 0x00;
+ f->numchars = 6;
+ f->glyph = (SWFGLYPH*)malloc(sizeof(SWFGLYPH)*208);
+
addGlyph(f,102, 0x00, 64, 0, &Glyphs_Demo_Font[0x0000], 872); // f
addGlyph(f,108, 0x00, 53, 1, &Glyphs_Demo_Font[0x006d], 452); // l