Affects Version/s: 1.7
Fix Version/s: None
I am using the following code snippet in my swing drawing routines:
Object oldHint = g.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
However, with Batik's SvgGraphics2D, oldHint is null and setting the hint "null" causes an exception.
So, I would suggest to initially set RenderingHints.VALUE_ANTIALIAS_DEFAULT in the constructor.
Btw: The anti-alias flags can be set in SVG using the *-rendering properties:
For example shape-rendering="crispEdges"