Details
Description
Java 8 and 11 seem to pick up on this scaling factor and will scale _some_ text but not others, depending on what kind of component they are rendered in.
Screenshots from examples and user reported problems attached.
This is very similar to the HiDPI problems encountered in Linux and the GtkLookAndFeel (
For the issue to be resolved in Linux, we require Java 11, and to set the sun.java2d.uiScale system property _before_ launch of the Jalview desktop. This means being set by -Dsun.java2d.uiScale=N in either getdown or jalview.bin.Launcher (or a cli invocation). The calculation of whether to set this and what to is performed by jalview.bin.HiDPISetting but only if the OS is Linux.
1) We could see if extending this Jalview-internal-automatic-setting to Windows works (this will hopefully override the OS non-integer setting to give consistent font sizes in Jalview.
2) This setting has no affect in Java 8 in Linux, but it's not clear to me if it might in Java 8 in Windows since HiDPI support was present for Windows in earlier versions of Java (and the screenshots show that some of the text scaling is happening in Java 8 versions).
The property can currently be set with jalview.bin.Launcher by setting
-DsetHiDPIScale=N
Attachments
Issue Links
- depends on
-
JAL-4494 Migrate to Java 11 for Jalview production version
- Open
- is duplicated by
-
JAL-4171 I installed Jalview on my windows laptop. And all the letters in the window appears so small. Is there a way to fix this issue?
- Closed
- related with
-
JAL-2387 Preferences panel doesn't inherit scaled base font size from system on hi-res screens
- Open
-
JAL-3552 Fonts too small in alignment, annotations and Preferences and tabs not appearing correctly in Ubuntu with 4k screen
- Closed
-
JAL-3770 Sequence font resolution appears lower than other rendered fonts (e.g. Column numbering and Annotation Labels) in the Alignment window when using a HiDPI display
- Open
-
JAL-3137 Support HiDPI scaling for hi-resolution displays
- Open
-
JAL-3781 Make the alignment panel graphics layer HiDPI aware (i.e. use a higher resolution instead of automatically scaling lower resolution)
- In Progress