Opened 2 years ago
Closed 2 years ago
#22429 closed defect (duplicate)
Open window enlarges window font
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | template_report windows scaling | Cc: |
Description
What steps will reproduce the problem?
- File -> Open
What is the expected result?
The font size remain constant
What happens instead?
The font approximately doubles in size in both the child open window and the menu bar.
Please provide any additional information below. Attach a screenshot if possible.
Revision:18565 Build-Date:2022-10-03 10:53:19 Identification: JOSM/1.5 (18565 en) Windows 11 64-Bit OS Build number: Windows 10 Home 2009 (22000) Memory Usage: 396 MB / 8124 MB (136 MB allocated, but free) Java version: 17.0.4+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 3840×2160 (scaling 2.50×2.50) Maximum Screen Size: 3840×2160 Best cursor sizes: 16×16→64×64, 32×32→64×64 System property file.encoding: Cp1252 System property sun.jnu.encoding: Cp1252 Locale info: en_US Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Djpackage.app-version=1.5.18565, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe] Dataset consistency test: No problems found Last errors/warnings: - 00000.397 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF' - 00000.399 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF' - 00001.014 E: java.security.KeyStoreException: Windows-ROOT not found. Cause: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
Attachments (5)
Change History (14)
by , 2 years ago
comment:1 by , 2 years ago
Keywords: | windows scaling added |
---|
comment:3 by , 2 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
Does the program compatibility mode as mentioned in comment 27 on #21278 help?
comment:4 by , 2 years ago
Apparently, yes. If I set the Windows scaling to 100%, the dialogue box appears correctly (i.e. the Open and Cancel buttons are visible), but unreadably small, and the menu bar text size doesn't enlarge. Surely this isn't the recommended workaround, right?
comment:5 by , 2 years ago
If I had a windows machine, I could probably figure out what exactly is happening and why, but I don't. So the only workaround I know of is the one that skyper mentioned.
What you can do is check and see if the Open/Cancel buttons are appropriately scaled from the 100% test. If the icons are 2.5x larger (250%), then scaling is working appropriately for the buttons, in which case something else is going on.
But looking at the images you attached, the F
in File
is 21px high initially, and then becomes 53px high (2.52x higher, 52.5 is 2.5x, so it looks like it is getting rounded up 0.5px). Can you attach an image with scaling at 100%?
On my machine (Mac), the File
menu is 10px high (non-HiDPI monitor) and is 19px high (HiDPI monitor).
by , 2 years ago
Attachment: | 2022-10-18 (1).png added |
---|
JSOM at open with Windows display scale at 100%
by , 2 years ago
Attachment: | 2022-10-18 (2).png added |
---|
JSOM with FileOpen child with Windows display scale at 100%
by , 2 years ago
Attachment: | 2022-10-18 (3).png added |
---|
JSOM at open with Windows display scale at 125%
by , 2 years ago
Attachment: | 2022-10-18 (4).png added |
---|
JSOM with File/Open child with Windows display scale at 125%
comment:6 by , 2 years ago
I just added screen shots with JOSM (forgive me for saying JSOM as I've been just getting familiarized with JSON via Python today):
1) at open with Windows display scale at 100%
2) with FileOpen child with Windows display scale at 100%
3) at open with Windows display scale at 125%
4) with File/Open child with Windows display scale at 125%. Even at 125% the Open and Cancel buttons aren't visible or accessible with the mouse.
comment:7 by , 2 years ago
I still suspect this is a bug either in Java or in Windows -- we are using the native file dialog in those pictures. I'll see if I can put together a minimal example that you can test and I can send to the upstream Java developers.
In the meantime, you can try disabling Use native file choosers
in JOSM Preferences -> Display.
comment:8 by , 2 years ago
Thank you! That works! (A side benefit of this ticket is learning about Windows scaling. My eyes can tolerate 200%. After I get my "desk" bifocals, I expect I can do 150%.)
comment:9 by , 2 years ago
Resolution: | → duplicate |
---|---|
Status: | needinfo → closed |
Closed as duplicate of #21278.
File -> Open