X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fdevices%2Fswf.c;h=4d8bbeaf08722bb7e07aed3e6ee8ce9c97ffbbf6;hp=32fca541666055e98ed3568123f5185358f47b37;hb=25efc6d493c8a52a501db8ca2fea30439ad1cfee;hpb=774a5ebf5e30ea11d75293d9132e9dd48a10eb8d 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