shape-rendering attribute

A discussion forum for JFreeSVG (a fast, lightweight, SVG generator for the Java platform).
Locked
remiohead
Posts: 201
Joined: Fri Oct 02, 2009 3:53 pm
antibot: No, of course not.

shape-rendering attribute

Post by remiohead » Wed Jun 18, 2014 10:03 pm

https://developer.mozilla.org/en-US/doc ... -rendering

I think this should be set to "crispEdges" for horizontal and vertical lines, rectangles, and Path2D shapes made up only of horizontal and vertical lines. The result looks considerably better for almost all JFreeCharts I have tested it with.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: shape-rendering attribute

Post by david.gilbert » Wed Jun 25, 2014 7:48 am

I'm making this configurable for the next release. In some cases, I see strange results with "crispEdges" (gridlines disappear for example) but in other cases you are right that it looks sharper.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked