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.

I increase the font size for the application itself

+3 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?
asked Oct 10, 2015 in Help by anonymous
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.

3 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.
answered Aug 2, 2018 by orey (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

answered Jan 30 by rochdiboudjehem (200 points)
–1 vote
This, as it turns, has already been answered here:

http://yed.yworks.com/support/qa/10068/make-gui-font-size-bigger
answered Aug 18, 2017 by Inego (180 points)
Legal Disclosure | Privacy Policy