From ca203bf4cf215ea6e5e1713c5b4140f0bb8d93c8 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Mon, 25 Jan 2010 12:42:12 -0800 Subject: [PATCH] fixed rendering of definefont3 --- lib/readers/swf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/readers/swf.c b/lib/readers/swf.c index 98c340c..58e027c 100644 --- a/lib/readers/swf.c +++ b/lib/readers/swf.c @@ -340,7 +340,8 @@ static map16_t* extractDefinitions(SWF*swf) map16_add_id(map, id, c); } else if(tag->id == ST_DEFINEFONT || - tag->id == ST_DEFINEFONT2) { + tag->id == ST_DEFINEFONT2 || + tag->id == ST_DEFINEFONT3) { character_t*c = rfx_calloc(sizeof(character_t)); SWFFONT*swffont = 0; font_t*font = (font_t*)rfx_calloc(sizeof(font_t)); @@ -355,6 +356,10 @@ static map16_t* extractDefinitions(SWF*swf) } SHAPE2*s2 = swf_ShapeToShape2(swffont->glyph[t].shape); font->glyphs[t] = swfline_to_gfxline(s2->lines, 0, 1); + if(tag->id==ST_DEFINEFONT3) { + gfxmatrix_t m = {1/20.0,0,0, 0,1/20.0,0}; + gfxline_transform(font->glyphs[t], &m); + } swf_Shape2Free(s2); } swf_FontFree(swffont); -- 1.7.10.4