High DPI support

This topic has been viewed 5676 times and has 5 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
Leif
Posts: 2
Joined: Fri Jun 01, 2018 4:48 pm

High DPI support

Post by Leif »

Hi guys,

Thank you Emmanuel for a phenomenal program!

Any chance of High DPI support?

As a programmer myself, having made High DPI apps, it looks to me like it's really really close already. The Furniture database, the Furniture list second, and the toolbar seem to be the only things that have problems due to fixed pixel sizes somewhere in the code. 3D view, 2D view and dialog boxes all seem fine.

Here's how it renders on my system with 4K monitors (3840x2160) and 200% font size (192 dpi).

Image

Best regards,
///Leif
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: High DPI support

Post by Puybaret »

Please try the solution in the FAQ Texts in the furniture catalog are not displayed correctly or icons in the toolbar appear very small on my computer. How can I fix that?
As you're a developer and Java 9 is supposed to fix this issue, it would be nice if you could also try to install Java 9 on your computer and run Sweet Home 3D with it, either with Java Web Start or with the JAR Executable version (About dialog box will confirm which Java version is used). I don't have any HiDPI PC running under Windows and wonder how it works...
Emmanuel Puybaret, Sweet Home 3D creator
Leif
Posts: 2
Joined: Fri Jun 01, 2018 4:48 pm

Re: High DPI support

Post by Leif »

Thanks for the reply, Emmanuel!

I'm a C++ (Win32 API) developer, not Java, but I will be happy to try it :).

Best,
///Leif
Lawrie
Posts: 7
Joined: Tue Jun 02, 2015 2:56 am

Re: High DPI support

Post by Lawrie »

Hello Emmanuel
It's a shame you haven't heard back from Leif.
I too have been having a lot of trouble with the same issues - win10x64, SH3D V5.7, 4K monitor, GLX950 video card, Java 8-181, all drivers fully up-to-date - have tried playing with the two ini files to no avail - this morning went back to the screen resolution and changed the scale back from 200% to recommended 150% and the catalog fonts become readable but too small for comfort.
So I surmise that the row heights for each line are not high enough to accommodate the 200% scale so any suggestions that will increase the row heights so that a higher scaling than 150% could be used would be welcome.
Also - the size of the icons is very small and even at a scaling of 200% too small.
This issue has been going on for such a long time.
I did try another way of getting around the issue - opened up a new user profile and opened the program - everything worked well on the plans - good size fonts and icons - but the 3D image was only 25% of the screen.
Unfortunately - for some reason this morning when I opened with the JNLP file everything reverted back to unreadable fonts and the same very small icons.
Love your program and have spent a huge number of hours on it.
Regards
Lawrie
mxp
Posts: 2
Joined: Fri Sep 20, 2019 11:10 pm

Re: High DPI support

Post by mxp »

I can confirm that High DPI is well supported for Windows using OpenJDK 13 and running via the command line with

Code: Select all

java -jar SweetHome3D-6.2.jar
The default Windows installed version of Sweet Home 3D was running with very small fonts.
mxp
Posts: 2
Joined: Fri Sep 20, 2019 11:10 pm

Re: High DPI support

Post by mxp »

Note, in addition to High DPI support working with the JDK 13, the following warnings are displayed, which may be of interest to you.

Code: Select all

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline (file:/C:/Program%20Files%20(x86)/Sweet%20Home%203D/lib/SweetHome3D-6.2.jar) to method sun.awt.AppContext.getAppContext()
WARNING: Please consider reporting this to the maintainers of javax.media.j3d.JoglPipeline
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest