Skip to content

Proper GUI scaling on HiDPI displays.  #137

@johann-petrak

Description

@johann-petrak

Tested on a laptop with Ubuntu 20.04.1, 2880x1620 resolution set to 200% scaling in the default window manager. Tested with both the "fractional scaling" option enabled and disabled.

Tested to run a freshly installed revision 9532ab9 and also
on a freshly compiles (with Java 8) revision 81d16d5

Tested with Java versions:

  • Java.net 11.0.8-open
  • Java.net 8.0.265-open
  • AdoptOpenJDK 15.0.1.j9-adpt

All three showed the splash screen and GUI without scaling.

Workarounds that worked for me in these cases:

  • running with the parameter added: -Dsun.java2d.uiScale=2.0
  • setting the environment variable GDK_SCALE=2.0 before running

Same with the Mate window manager

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions