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

I increase the font size for the application itself

+4 votes
So I know I can change the font size of the nodes, relationships, etc but I can't figure out how to change the tiny font of the UI itself. In other words, I would like to increase the font of the properties view, is this possible?
in Help by
Yes, all menus are really tiny on high-resolutions screens in Ubuntu. The app doesn't seem to obey to system-wide font scale settings.

4 Answers

0 votes
Yed being a Swing application, you can change the font size of the UI by adding parameters on the command line (when using the Yed jar file).

This command line :

java -Dswing.aatext=true   \
     -Dswing.plaf.metal.controlFont="Sans-10"  \
     -Dswing.plaf.metal.userTextFont="Sans-10"  \
     -Dswing.plaf.metal.menuTextFont="Sans-10"   \
     -Dswing.plaf.metal.subTextFont="Sans-10"     \
     -Dswing.plaf.metal.systemTextFont="Sans-10"   \
     -Dswing.plaf.metal.windowTitleFont="Sans-10"   \
     -jar yed.jar
                   
reduces, for me almost all the fonts of Yed, except the font of the palette.
by (150 points)
This is great in theory, but doesn't work well for increasing font sizes. When increasing font sizes the Properties Pane does not increase the vertical space allocated to the text under it, so the text is truncated on the top and bottom.
0 votes

As @Orey mentionned I have wrote a bash script that contains :

#!/bin/bash
/home/me/yEd/jre/bin/java -Dswing.aatext=true  \
-Dswing.plaf.metal.controlFont="Dialog-17"   \
-Dswing.plaf.metal.userTextFont="Dialog-17" \
-Dswing.plaf.metal.userFont="Dialog-17"\
-Dswing.plaf.metal.menuTextFont="Dialog-17"\
-Dswing.plaf.metal.subTextFont="Dialog-17" \
-Dswing.plaf.metal.systemTextFont="Dialog-17"\
-Dswing.plaf.metal.windowTitleFont="Dialog-17" \
-Dawt.useSystemAAFontSettings=on \
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel \
-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel  \
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel \
-jar /home/me/yEd/yed.jar
 
 
Then create a new desktop file that calls this bash script :
 
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=yEd HiFonts
Exec="/home/me/yEd/launchYed.sh"
Icon=/home/me/yEd/.install4j/yEdHiFonts.png
Categories=Application;
Name[en_GB]=yEd HiFonts.desktop

n.b : I created a new icon and call it yEdHiFonts.png

by (200 points)
0 votes

The solutions using swing runtime parameters do not work for me for yEd 3.20.1 on Ubuntu Mint 20 and a 4k screen.

Using run_scaled -scale=1.5 works acceptable as described in this article at Ask Ubuntu.
 

by
–1 vote
This, as it turns, has already been answered here:

http://yed.yworks.com/support/qa/10068/make-gui-font-size-bigger
by (190 points)
Legal Disclosure | Privacy Policy
...