Comments (3)
Thanks for the report. I had a quick look, the LineBorder class in Swing is drawing the border by filling a path with an inner and an outer boundary:
Path2D path = new Path2D.Float(Path2D.WIND_EVEN_ODD);
path.append(outer, false);
path.append(inner, false);
g2d.fill(path);
g2d.setColor(oldColor);
I'll have to dig deeper into how the path is translated for rendering in SVG, there must be some error there.
from jfreesvg.
The path element was using the default winding rule, whereas in this case the "even-odd" rule is required. I've committed a fix for this (to be included in the next release, 4.2).
from jfreesvg.
Thank you. Please note that OrsonPdf has the same issue. Shall I open an Issue for OrsonPdf ?
from jfreesvg.
Related Issues (20)
- Question: How can I reduce the "size" of the generated SVG? HOT 10
- Font family name issue HOT 2
- Why does the Artifact ID not follow the Apache Maven guidelines (it prepends the Group ID)? HOT 2
- Optimizations for smaller output HOT 9
- JFreeSVG 4.1 not in Maven Central HOT 2
- Is it possible to output a .svg file in compressed format HOT 1
- Can an existing SVG be loaded to include in the newly created SVG HOT 1
- Class RyuDouble returns inappropriate values HOT 7
- Custom miterlimit is not applied HOT 1
- Could/should SVGGraphics2D dimensions use double precision? HOT 12
- Missing semicolon in SVGGraphics2D#strokeStyle() HOT 4
- Problem when rotating to horizontal HOT 2
- How to add "letter-spacing"? HOT 4
- Drawing with path data string? HOT 1
- draw a element can set a id or class? HOT 1
- What lib would you use to parse SVG files? HOT 1
- Avoid writing double semicolon in SVG style attribute HOT 2
- Faster double-to-string conversion
- electronic schema HOT 1
- Download for 3.4 (or 3.4.3) is not available
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jfreesvg.