hmm,
then it might be this bug
https://bugs.openjdk.java.net/browse/JDK-8238734?jql=labels%20%3D%20hidpi
supposedly we can work around it, let me see if i can wing something.. sunny
regards ede
On 15.12.2021 07:53, Rahkonen Jukka (MML) wrote:
Hi Ede,
This issue happens both with jre8 and jre11. Even jre11 shows the menu texts
and tool icons sharper the digitizing pen and other cursor tools appear like
overscaled and the hotspot is not where it is supposed to be.
Funny thing was that I could not take a screenshot about the tool icon
appearance with the Windows tool. When I used the capturing tool the the OJ
digitizing pen cursor icon was changed into a small and sharp pen. Obviously
Windows is managing cursor icons in some special way. I wonder what would
happen if we had 64x64 pixels versions of the icons, would Windows still try to
rescale them.
-Jukka-
-----Alkuperäinen viesti-----
Lähettäjä: edgar.sol...@web.de <edgar.sol...@web.de>
Lähetetty: tiistai 14. joulukuuta 2021 22.38
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Cursor hotspot location error with high resolution
hey Jukka,
assuming you are still using some java8 jre. it reads like java8 is buggy in
this regard
https://superuser.com/questions/988379/how-do-i-run-java-apps-upscaled-on-a-high-dpi-display
could you try using java11 (because lts) or at least java9 and check if the
error without the workaround setting persists? .. ede
On 14.12.2021 20:27, Rahkonen Jukka (MML) wrote:
Hi,
I managed to get the digitizing tool usable by adjusting the display settings.
1. Right click the OpenJUMP.exe icon
2. From Compability tab select “Change high DPI settings 3. Select
High DPI scaling override, check the box, and from the Scaling
performed by drop down menu select System
With these settings OpenJUMP can be started from the OpenJUMP.exe icon and
editing tools are usable. The icons are tiny but they hit the correct place.
The settings are not applied when OJ is started directly from oj_windows.bat.
This document helped me
https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/desktop/
fixing-blurry-text-in-windows-for-it-professionals?view=windows-11
<https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/desktop
/fixing-blurry-text-in-windows-for-it-professionals?view=windows-11>
-Jukka Rahkonen-
*Lähettäjä:*Rahkonen Jukka (MML)
*Lähetetty:* maanantai 13. joulukuuta 2021 22.41
*Vastaanottaja:* jump-pilot-devel@lists.sourceforge.net
*Aihe:* Cursor hotspot location error with high resolution
Hi,
I hope the video is not too big as an attachment. With two different laptops
running Windows 10 it is impossible to digitize when the screen resolution is
the default 1920x1080. The pen icon is then rather big, with low resolution,
and the hotspot is not at the tooltip. The tool icon is small and sharp and
usable when the resolution is 1280x1024, but my computer generally is not so
useful with that resolution.
I tried to read the source code and found
https://github.com/openjump-gis/openjump/blob/185dc45541774316bca11756
50d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool/e
diting/FeatureDrawingUtil.java#L240
<https://github.com/openjump-gis/openjump/blob/185dc45541774316bca1175
650d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool/
editing/FeatureDrawingUtil.java#L240>
@Override
public Cursor getCursor() {
if (Toolkit.getDefaultToolkit().getBestCursorSize(32, 32)
.equals(new Dimension(0, 0))) {
return Cursor.getDefaultCursor();
}
return
Toolkit.getDefaultToolkit().createCustomCursor(
IconLoader.icon("Pen.gif").getImage(),
new java.awt.Point(1, 31), drawFeatureTool.getName());
I wonder if the BestCursorSize makes something not so good when the screen
resolution is high.
-Jukka Rahkonen-
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel