X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftext.c;h=500d6c962834d39542fc916dd217a1ad787aea10;hb=b0b810eccb37070019e586d12adf14765c1cd354;hp=5ebe89f4a042f70cb16a9cfaecfbd51b46af0d1a;hpb=748e4fadbbfb88f22f80863c3e49920b9431c2ef;p=swftools.git diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 5ebe89f..500d6c9 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -208,11 +208,15 @@ int swf_FontExtract_DefineFont2(int id,SWFFONT * font,TAG * tag) if(flags1&8) { // wide offsets for(t=0;tglyph[t].shape)); @@ -252,10 +256,12 @@ int swf_FontExtract_DefineFont2(int id,SWFFONT * font,TAG * tag) font->layout->bounds = malloc(glyphcount*sizeof(SRECT)); for(t=0;tlayout->bounds); + swf_GetRect(tag, &font->layout->bounds[t]); } + kerningcount = swf_GetU16(tag); font->layout->kerningcount = kerningcount; + font->layout->kerning = (SWFKERNING*)malloc(sizeof(SWFKERNING)*kerningcount); if(kerningcount) { font->layout->kerning =