[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:
[https://stackoverflow.com/questions/43057457/jdk-9-high-dpi-disable-for-specific-panel]
{code:java}
final Graphics2D g = (Graphics2D) graphics;
final AffineTransform t = g.getTransform();
t.setToScale(1, 1);
g.setTransform(t);
{code}
But where is the right place (class) for this fix?

 

Thank you

Eric



--
This message was sent by Atlassian Jira
(v8.3.4#803005)