int p,i,j;
if ((!t)||(!f)) return -1;
- swf_ResetBitcount(t);
+ swf_ResetWriteBits(t);
swf_SetU16(t,f->id);
p = 0; j = 0;
if (f->glyph[i].shape)
swf_SetSimpleShape(t,f->glyph[i].shape);
- swf_ResetBitcount(t);
+ swf_ResetWriteBits(t);
return 0;
}
int swf_FontSetInfo(TAG * t,SWFFONT * f)
{ int l,i;
if ((!t)||(!f)) return -1;
- swf_ResetBitcount(t);
+ swf_ResetWriteBits(t);
swf_SetU16(t,f->id);
l = strlen(f->name); if (l>255) l = 255;
swf_SetU8(t,l);
swf_SetBits(t,(((U32)font->glyph[s[i]].advance)*scale)/100,abits);
}
- swf_ResetBitcount(t);
+ swf_ResetWriteBits(t);
return 0;
}