Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
1.0, 2.4
-
None
-
None
Description
If you scale your Windows display (All settings > System > Display) to >100% the AWT-Renderer renders a pixelated view. Please see my attachments.
How to reproduce?
- In Windows (7-10) go to
All settings > System > Display
and set e.g. 150% for the "size of text, apps and other items" - extract the FOP archive
- open a shell in fop-2.4\fop
- run the command: fop.bat examples\fo\basic\fonts.fo -awt
- the opening view is pixelated
How to fix?
Windows-Java returns a pre-scaled Graphics2D object. I guess this Stackoverflow question can help:
https://stackoverflow.com/questions/43057457/jdk-9-high-dpi-disable-for-specific-panel
final Graphics2D g = (Graphics2D) graphics; final AffineTransform t = g.getTransform(); t.setToScale(1, 1); g.setTransform(t);
But where is the right place (class) for this fix?
Thank you
Eric