sogwhite / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

Rendering hints not applied on rendering to image #200

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Invocation of Java2DRenderer.setRenderingHints() has no effect because the 
underlying code incorrectly applies them.

In order to fix it, in org.xhtmlrenderer.swing.Java2DRenderer#getImage() the 
following code:

newG.getRenderingHints().putAll(renderingHints);

should be replaced with:

newG.addRenderingHints(renderingHints);

because getRenderingHints() produces a disconnected clone.

Original issue reported on code.google.com by folde...@gmail.com on 14 Jun 2012 at 8:28

GoogleCodeExporter commented 9 years ago
even though change to newG.addRenderingHints(renderingHints);It's no effect 
too!!

Original comment by springaf...@gmail.com on 18 Dec 2012 at 2:50