bugfix: font glyph boundaries weren't stored.
authorkramm <kramm>
Thu, 13 Jun 2002 16:30:22 +0000 (16:30 +0000)
committerkramm <kramm>
Thu, 13 Jun 2002 16:30:22 +0000 (16:30 +0000)
lib/modules/swftext.c

index 28ebc15..500d6c9 100644 (file)
@@ -256,7 +256,7 @@ int swf_FontExtract_DefineFont2(int id,SWFFONT * font,TAG * tag)
        font->layout->bounds = malloc(glyphcount*sizeof(SRECT));
        for(t=0;t<glyphcount;t++) {
            swf_ResetReadBits(tag);
-           swf_GetRect(tag, font->layout->bounds);
+           swf_GetRect(tag, &font->layout->bounds[t]);
        }
 
        kerningcount = swf_GetU16(tag);