You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.., in a loop of shapes if I use "Stroke randomStroke = new BasicStroke(randomStrokeWidth); " if width will be set to zero, at the end I get stroked shapes with a rendered default width 0.1f. Instead it should export "no stroke". Batik exports ok the same graphics2D object, without rendering the stroke by setting: stroke-width:0.
SVGGraphics2D source constructor this.zeroStrokeWidth = 0.1; and at the end we get stroke-width:0.1 with all zero width objects
So In this case, I could set my minimum width to something like near zero .. 0.000001f and svg export is ok, as a workaround. But zero should be handled, maybe should be clearer if just use 0f instead of 0.1f in the constructor default value.
Thanks
The text was updated successfully, but these errors were encountered:
Hi.., in a loop of shapes if I use "Stroke randomStroke = new BasicStroke(randomStrokeWidth); " if width will be set to zero, at the end I get stroked shapes with a rendered default width 0.1f. Instead it should export "no stroke". Batik exports ok the same graphics2D object, without rendering the stroke by setting: stroke-width:0.
SVGGraphics2D source constructor this.zeroStrokeWidth = 0.1; and at the end we get stroke-width:0.1 with all zero width objects
So In this case, I could set my minimum width to something like near zero .. 0.000001f and svg export is ok, as a workaround. But zero should be handled, maybe should be clearer if just use 0f instead of 0.1f in the constructor default value.
Thanks
The text was updated successfully, but these errors were encountered: