iMyth / flying-saucer

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

Add DPI setting to Java2DImageRenderer #232

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an HTML+CSS with font-size: 5pt (tiny font).
2. Render as Image. Notice unreadable text.
3. Try to increase image size before rendering.
4. Notice font-size doesn't change, as Java2DImageRenderer assumes 1 point == 1 
pixel. There is no way to change that.

What is the expected output? What do you see instead?

It should be possible to configure DPI in Java2DImageRenderer. It is important 
to be able to control rendered image resolution.

What version of the product are you using? On what operating system?

9.0.4

Please provide any additional information below.

Original issue reported on code.google.com by rustam...@gmail.com on 10 Feb 2014 at 4:34

GoogleCodeExporter commented 9 years ago
Never mind - I think it is working. Please close this issue.

renderer.getSharedContext().setDPI(144);

Original comment by rustam...@gmail.com on 10 Feb 2014 at 4:48