You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On high-DPI displays on Windows and Linux under Java 8, the default font sizes are tiny. This seems to be fixed when running Java 9, as then the Java UI components are actually high-DPI aware.
For those users that want to / have to stay at Java 8, it would be nice to have a more convenient way to get to usuable font sizes.
As far as I can tell, the situation currently is:
Using the Increase/Decrease font size actions in the Options menu, one can increase the font size of the menus etc by +1/-1 points
The fonts in the model and property editor can be changed from the font selector in the settings dialog.
There are quite a few fonts that are not actually adjusted / adjustable.
I would propose the following:
Introduce a global font scale factor, which can be adjusted via the Increase/Decrease actions (perhaps in +/-10% steps?)
Add some sub-menu there to allow resetting to 100% and to some convient value for high DPI displays (200%, 300%?)
During rendering, adjust all font sizes by this factor. So, if the model editor font from the settings dialog has 20pt font size, that would be scaled as well.
Identify all the locations where currently fixed font sizes are used (probably sufficient to scan the call sites for new Font) and make them take the factor into account.
Some related items:
Increasing the font size via the menu actions leads to white bars appearing on the left for some of the boxes in the simulator view
The current hot-key for "Increase" (Cmd+SHIFT+=) does not work on German keyboards and OS X. Can we use + instead of SHIFT+= in the code?
I've seen long error messages (such as the overflow error during symbolic model building) leading to an error dialog box that was wider than the screen. Perhaps we can use some other widget for the text, there?
The text was updated successfully, but these errors were encountered:
Okay weirdly this actually seems to be an issue with specific distributions of the JDK on Windows.
AdoptOpenJDK 1.8.0_222-b10: YES issue
JDK from Oracle 8u221: NO issue
AdoptOpenJDK 9.0.4+11: NO issue
JDK from Oracle versions 9-13: NO issue
So the JDK from Oracle works, the 8.0 one from AdoptOpenJDK does not. The problematic AdoptOpenJDK distribution is bundled with the VS Code Java Pack Installer, so might be more popular among developers.
On high-DPI displays on Windows and Linux under Java 8, the default font sizes are tiny. This seems to be fixed when running Java 9, as then the Java UI components are actually high-DPI aware.
For those users that want to / have to stay at Java 8, it would be nice to have a more convenient way to get to usuable font sizes.
As far as I can tell, the situation currently is:
I would propose the following:
new Font
) and make them take the factor into account.Some related items:
+
instead of SHIFT+= in the code?The text was updated successfully, but these errors were encountered: