X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fswfextract.c;h=4eeca601e3fdfd71686a138028bd3a6ad92cb7cc;hp=3550731eb00e1ba0618073250867008ec9990f4d;hb=275179c87d277416cfcc0d7a346ed60c4545ba31;hpb=5ba24931ec3861ca5befcaae1502dd9105639b44 diff --git a/src/swfextract.c b/src/swfextract.c index 3550731..4eeca60 100644 --- a/src/swfextract.c +++ b/src/swfextract.c @@ -483,7 +483,7 @@ int isOfType(int t, TAG*tag) if(t == 4 && (tag->id == ST_DEFINESOUND)) { show = 1; } - if(t == 5 && (tag->id == ST_DEFINEFONT || tag->id == ST_DEFINEFONT2)) { + if(t == 5 && (tag->id == ST_DEFINEFONT || tag->id == ST_DEFINEFONT2 || tag->id == ST_DEFINEFONT3)) { show = 1; } return show; @@ -586,8 +586,6 @@ void handlefont(SWF*swf, TAG*tag) printf("Couldn't extract font %d\n", id); return; } - if(!f->layout) - swf_FontCreateLayout(f); swf_WriteFont(f, filename); swf_FontFree(f);