X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fdemofont.c;h=e48b1684020caf6fb7afdb7a5894f03963484448;hb=3cf7bdf11b3f690167c55c35fb21eb24018678dc;hp=8d859452806c67edf4dd4dafcc7f7b4b14869207;hpb=8e60ff96f0ed8f18ff198d414de1e3aeb1e5ee32;p=swftools.git diff --git a/lib/example/demofont.c b/lib/example/demofont.c index 8d85945..e48b168 100644 --- 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->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