Skip to content

Arduino 1.8.9 high dpi issue on Linux #9170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jpeterse opened this issue Aug 23, 2019 · 6 comments
Open

Arduino 1.8.9 high dpi issue on Linux #9170

jpeterse opened this issue Aug 23, 2019 · 6 comments
Labels
Component: IDE user interface The Arduino IDE's user interface Type: Bug

Comments

@jpeterse
Copy link

Updated to 1.8.9 and menu's are not scaled with the Interface scaling setting.
The text in the editor is scaling, but not the menus.
Setting the GDL_SCALE environment variable doesn't work either.

Here's a screenshot comparing the menus from kwrite with arduino editor.
image

@per1234 per1234 added the Component: IDE user interface The Arduino IDE's user interface label Aug 25, 2019
@per1234
Copy link
Collaborator

per1234 commented Aug 25, 2019

@stapelberg
Copy link

As a shot into the dark: check your gtk-font-name value. I had gtk-font-name "Bitstream Vera Sans 8" in my ~/.gtkrc-2.0. Changing font size from 8 to 12 worked for me.

@jpeterse
Copy link
Author

jpeterse commented Sep 7, 2019

mine is currently:
gtk-font-name="Noto Sans Regular 10"
It looks like the menu's are driven by the font setting in the ~/.gtkrc-2.0 file .
The menu is not changing when the interface scaling is set in preferences.

Issue is, that Arduino IDE is the only application that doesn't display correctly on my PC.
So I don't want to change a global setting, to resolve the issue in a single application.

@eminfedar
Copy link

Pardus 19.0 GNU/Linux: (with a screen has 96 dpi), everything is huge except the editor.
Screenshot from 2019-10-08 18-03-01

@s-light
Copy link

s-light commented Feb 7, 2020

same problem - menu font size does not scale..
as discussed here i also tried -Dsun.java2d.uiScale=4 and -Dglass.gtk.uiScale=400% but this did not solve it for me.

the workaround by @stapelberg with setting the font-size in ~/.gtkrc-2.0 did work :-) 👍

so i researched a bit and to only set this for arduino i did the following:

  • create a new file arduino.gtkrc-2.0.conf in my arduino folder
  • copied & modified the content form the orig .gtkrc-2.0 file to this:
# This only overwrites the Font Settings for Menus to get readable.. :-)
include "/home/stefan/.gtkrc-2.0"
gtk-font-name="Noto Sans Regular 22"

now you can call your arduino ide with something like this:
GTK2_RC_FILES=./arduino.gtkrc-2.0.conf arduino-1.8.10/arduino
(if you are in the directory with the new special gtkrc file)

full path for me is:
GTK2_RC_FILES=/home/stefan/mydata/tools/arduino/arduino.gtkrc-2.0.conf /home/stefan/mydata/tools/arduino/arduino-1.8.10/arduino
and i just used this in my application launcher entry as the command.

@BackMountainDevil
Copy link

~/.gtkrc-2.0 not work for Arch KDE + arduino 1.8.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface Type: Bug
Projects
None yet
Development

No branches or pull requests

6 participants