X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftext.c;h=b559382fb45c8d8bb7ebcefe43b61c83f1bca3bb;hb=d047ab5d9aee6224e864c10bce623e43c56a13c3;hp=d7c0470cf2074f08931e469b8b61723ff05c817a;hpb=80cc20b7784cccc9d8baf9839f9781db6bb6f539;p=swftools.git diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index d7c0470..b559382 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -400,7 +400,7 @@ swf_FontExtract_DefineTextCallback(int id, SWFFONT * f, TAG * t, int jobs, SRECT r; MATRIX m; U8 gbits, abits; - int fid = 0; + int fid = -1; RGBA color; int x = 0, y = 0; int fontsize = 0; @@ -459,7 +459,6 @@ swf_FontExtract_DefineTextCallback(int id, SWFFONT * f, TAG * t, int jobs, adv = swf_GetBits(t, abits); xpos += adv; - // if (id == fid) { if (jobs & FEDTJ_PRINT) { int code = f->glyph2ascii[glyph]; @@ -467,12 +466,7 @@ swf_FontExtract_DefineTextCallback(int id, SWFFONT * f, TAG * t, int jobs, } if (jobs & FEDTJ_MODIFY) f->glyph[glyph].advance = adv * 20; //? - } else { - if (jobs & FEDTJ_PRINT) { - printf("?"); - } } - // buf[i] = glyph; }