[jira] [Created] (FOP-2927) Windows HiDPI: pixelated preview window

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Created] (FOP-2927) Windows HiDPI: pixelated preview window

Simon Steiner (Jira)
Eric Kraußer created FOP-2927:

             Summary: Windows HiDPI: pixelated preview window
                 Key: FOP-2927
                 URL: https://issues.apache.org/jira/browse/FOP-2927
             Project: FOP
          Issue Type: Bug
          Components: renderer/awt
    Affects Versions: 2.4, 1.0
            Reporter: Eric Kraußer
         Attachments: Windows scale 100.png, Windows scale 150.png

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:
final Graphics2D g = (Graphics2D) graphics;
final AffineTransform t = g.getTransform();
t.setToScale(1, 1);
But where is the right place (class) for this fix?


Thank you


This message was sent by Atlassian Jira