Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

HiDPI support for Linux

0 votes

I had trouble installing this on Linux, where I had desktop scaling set to 200% (in Retina parlance, a "Looks like 1920x1080" mode on a 4K monitor). The installer opened a window that was too small to see its content. Specifically the button to accept the T&Cs was out of the viewport, and the window could not be scrolled or resized to include it.

The same applies when the application is then run. It takes no notice of desktop scale, and thus the user interface elements are far too small to use on a high resolution monitor.

Tested: current version (3.18.1) with included Java 10, on Ubuntu 18.04, in Gnome.

BTW JAR-only version with OpenJDK 10.0.2+13 failed with missing stuff:

Exception in thread "main" java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper

in Help by
recategorized by

1 Answer

0 votes

Java applications can be scaled per-application. Edit the execution script:

nano ~/yEd/yEd

The top few lines are:

#!/bin/sh

# Uncomment the following line to override the JVM search sequence
# INSTALL4J_JAVA_HOME_OVERRIDE=
# Uncomment the following line to add additional VM parameters
# INSTALL4J_ADD_VM_PARAMS=
 
Add the following (the comment was for my benefit):
 
# 2019-Nov-28 AM: Additional parameters for High DPI scaling
INSTALL4J_ADD_VM_PARAMS=-Dsun.java2d.uiScale=2.0
 
Play around with the scaling until you like it. I found 2.0 (200%) quite good.
 
This was tested on 3.19 and 3.19.1.1 (full install) running on Ubuntu 19.04 and 19.10.
by (150 points)
Legal Disclosure | Privacy Policy
...