From: kramm Date: Mon, 19 May 2003 18:52:42 +0000 (+0000) Subject: glyphs now use CountUBits, which makes textdefines slightly smaller X-Git-Tag: release-0-5-0~224 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=d5c725f9d078dd9103bf35286abe767646ab81aa glyphs now use CountUBits, which makes textdefines slightly smaller --- diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 10b04fc..8a04b38 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -685,7 +685,7 @@ int swf_TextCountBits(SWFFONT * font,U8 * s,int scale,U8 * gbits,U8 * abits) if(s[0] < font->maxascii) glyph = font->ascii2glyph[s[0]]; if(glyph>=0) { - g = swf_CountBits(glyph,g); + g = swf_CountUBits(glyph,g); a = swf_CountBits((((U32)font->glyph[glyph].advance)*scale)/100,a); } s++; @@ -1016,7 +1016,7 @@ void swf_FontCreateLayout(SWFFONT*f) if(!shape2) { fprintf(stderr, "Shape parse error\n");exit(1); } - bbox = swf_GetShapeBoundingBox(shape2->lines); + bbox = swf_GetShapeBoundingBox(shape2); swf_Shape2Free(shape2); f->layout->bounds[t] = bbox; /* FIXME */