svg icon indicating copy to clipboard operation
svg copied to clipboard

Rendering openfl.svg is broken

Open mbrezu opened this issue 10 years ago • 4 comments

I tried rendering the openfl.svg file with this library and the background is translated to the left.

Code used:

public function new () {

    super ();

    var svgFile = Assets.getText("openfl");
            var svg = new SVG(svgFile);
            svg.render(graphics, 0, 0);
    cacheAsBitmap = true;
}

image

mbrezu avatar Apr 08 '14 09:04 mbrezu

Hmmm. it looks like the background isn't translated, the output is not clipped correctly.

mbrezu avatar Apr 08 '14 09:04 mbrezu

I can take a look at this. Can you please attach the openfl.svg file?

ashes999 avatar Dec 23 '15 22:12 ashes999

Hello, attached as .txt (apparently I can't attach svgs).

It's the file used to create icons for a freshly created openfl project.

Thanks!

openfl.txt

mbrezu avatar Dec 24 '15 15:12 mbrezu

Thanks.

ashes999 avatar Dec 24 '15 16:12 ashes999