From: kramm Date: Wed, 12 Nov 2008 10:31:40 +0000 (+0000) Subject: re-implemented drawonlyshapes X-Git-Tag: release-0-9-0~862 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=25efc6d493c8a52a501db8ca2fea30439ad1cfee;p=swftools.git re-implemented drawonlyshapes --- diff --git a/lib/devices/swf.c b/lib/devices/swf.c index 32fca54..4d8bbea 100644 --- a/lib/devices/swf.c +++ b/lib/devices/swf.c @@ -1589,6 +1589,8 @@ void swfoutput_linktourl(gfxdevice_t*dev, const char*url, gfxline_t*points) endshape(dev); if(i->textid>=0) endtext(dev); + + /* TODO: escape special characters in url */ if(i->config_externallinkfunction && i->config_flashversion<=8) { actions = action_PushString(actions, url); //parameter @@ -2840,6 +2842,17 @@ static void swf_drawchar(gfxdevice_t*dev, gfxfont_t*font, int glyph, gfxcolor_t* msg(" swf_drawchar called (glyph %d) without font", glyph); return; } + + if(i->config_drawonlyshapes) { + gfxglyph_t*glyph = &font->glyphs[glyphnr]; + gfxline_t*line2 = gfxline_clone(glyph->line); + gfxline_transform(line2, matrix); + draw_line(dev, line2); + fill_solid(dev, color); + gfxline_free(line2); + return; + } + if(!i->swffont || !i->swffont->name || strcmp((char*)i->swffont->name,font->id)) // not equal to current font { /* TODO: remove the need for this (enhance getcharacterbbox so that it can cope