openfl / svg

Provides SVG parsing and rendering for OpenFL and Haxe
MIT License
68 stars 30 forks source link

Rendering openfl.svg is broken #13

Open mbrezu opened 10 years ago

mbrezu commented 10 years ago

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 commented 10 years ago

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

ashes999 commented 8 years ago

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

mbrezu commented 8 years ago

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

ashes999 commented 8 years ago

Thanks.