X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdevices%2Fswf.c;h=1f34c1b8e9fa171e4bb1c829a09f8cd95e7f735e;hb=b0d6b177b15ec7aff4c132353366b946aa382a89;hp=32fca541666055e98ed3568123f5185358f47b37;hpb=72ec9e32258749cb564b71336c3bb368620239ba;p=swftools.git diff --git a/lib/devices/swf.c b/lib/devices/swf.c index 32fca54..1f34c1b 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,16 @@ 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*g = &font->glyphs[glyph]; + gfxline_t*line2 = gfxline_clone(g->line); + gfxline_transform(line2, matrix); + dev->fill(dev, line2, 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