Resend - Major issues FXCanvas on Win32 with HiDPI
kevin.rushforth at oracle.com
Tue Nov 21 21:57:54 UTC 2017
The JDK 9 patch would need to be done for JDK 10, but otherwise, this
sounds good. I'll take a look at this soon (when I have my Windows 10
HiDPI machine in front of me).
Tom Schindl wrote:
> Hi Kevin,
> I took a look and was able to come up with fixes for JDK8 (works in
> all my test cases) and JDK9 (improves the situation but I always get
> same DPI no matter what scaling I use) but it at least it improves the
> I'd highly appreciate if someone could take a look at the the issue!
> Am 2017-11-21 14:13, schrieb Kevin Rushforth:
>> Hi Tom,
>> There were several Hi-DPI fixes that went into JDK 9. One of them was
>> done as part of new API that was added, so that part cannot be
>> backported, but other changes could be if a safe fix were found.
>> As for finding the problem, the following bugs relating to Hi-DPI and
>> interop, and fixed only in 9, might be worth looking at:
>> https://bugs.openjdk.java.net/browse/JDK-8091832 (this is the main one)
>> -- Kevin
>> Tom Schindl wrote:
>>> [resending because image in original mail is blocked]
>>> Emebedding JavaFX on a HiDPI-Windows computer is producing incorrect
>>> results on Java8 and Java9 - see screenshot to attached .
>>> I see the following issues:
>>> - If swt.autoscale is on (top-right) the Font-Size is invalid
>>> and eg. context-menus pop up at the wrong location
>>> - If swt.autoscale is off (top-center) the JavaFX
>>> embedded scene as it should be and conext menus open at the right
>>> But this is not an option as other SWT-Areas who use the GC the don't
>>> renderer appropriately
>>> - If swt.autoscale is on sizes look ok but the embedded scene is
>>> and eg context-menu is at wrong position and has the wrong font-size
>>> - If swt.autoscale is off (bottom-center) the scene is too small but
>>> context-menu is at the wrong location
>>> I filed this as  but I'm
>>> writing here because I can not explain the difference between Java8 and
>>> Java9 and where I should start looking for a fix.
>>> I did not find anything in the mercurial history explaining that
>>> How likely is it that a changes in JDK9 to fix the problems with
>>> FXCanvas get backported to Java8?
>>>  https://bugs.openjdk.java.net/browse/JDK-8191661
More information about the openjfx-dev