summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e028a6a)
* fixed ascii/glyph advance value bug
- { if (swf_GetTagID(t)==ST_DEFINEFONTINFO)
+ { if (swf_GetTagID(t)==ST_DEFINEFONTINFO ||
+ swf_GetTagID(t)==ST_DEFINEFONT2)
{ n++;
if (FontCallback)
{ U16 id;
{ n++;
if (FontCallback)
{ U16 id;
U8 s[257];
swf_SaveTagPos(t);
swf_SetTagPos(t,0);
U8 s[257];
swf_SaveTagPos(t);
swf_SetTagPos(t,0);
+ if(swf_GetTagID(t) == ST_DEFINEFONT2)
+ swf_GetU16(t);
l = swf_GetU8(t);
swf_GetBlock(t,s,l);
s[l] = 0;
l = swf_GetU8(t);
swf_GetBlock(t,s,l);
s[l] = 0;
{ int code = f->glyph2ascii[glyph];
if (jobs&FEDTJ_PRINT) printf("%c",code);
if (jobs&FEDTJ_MODIFY)
{ int code = f->glyph2ascii[glyph];
if (jobs&FEDTJ_PRINT) printf("%c",code);
if (jobs&FEDTJ_MODIFY)
- /*if (!f->glyph[code].advance)*/ f->glyph[code].advance = adv;
+ /*if (!f->glyph[code].advance)*/ f->glyph[glyph].advance = adv;
}
}
if ((id==fid)&&(jobs&FEDTJ_PRINT)) printf("\n");
}
}
if ((id==fid)&&(jobs&FEDTJ_PRINT)) printf("\n");