Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Arduino IDE on High DPI

Open timhannah1988 opened this issue 11 years ago • 19 comments

I have recently purchased a Microsoft Surface Pro 3 which has a High DPI screen. I installed the IDE and loaded it for the first time and it appears that the gui doesn't support DPI scaling as the menus and text is tiny and unreadable. I am having to use the device with a lower resolution so that I can use the software properly.

Is there any support i am missing or is it simply not supported yet. If the latter please can this be considered on future builds

timhannah1988 avatar Jan 03 '15 12:01 timhannah1988

I'd like to see a fix for this as well. I have the same problem with my Samsung Ativ Book 9+. With all the new high DPI displays, this will become more of an issue.

jeremyepling avatar Jan 15 '15 17:01 jeremyepling

This seems more like a Java question. Arduino's IDE uses the Java JRE to do all those menus, so the bigger question is whether there's some way to tell the JRE to render them with more pixels?

PaulStoffregen avatar Jan 15 '15 18:01 PaulStoffregen

Where is the UI code in the repro? Im knew to this project, but I'm willing to dig in and look for a fix.

On Thu, Jan 15, 2015, 10:30 AM Paul Stoffregen [email protected] wrote:

This seems more like a Java question. Arduino's IDE uses the Java JRE to do all those menus, so the bigger question is whether there's some way to tell the JRE to render them with more pixels?

— Reply to this email directly or view it on GitHub https://github.com/arduino/Arduino/issues/2532#issuecomment-70135510.

jeremyepling avatar Jan 15 '15 20:01 jeremyepling

Where is the UI code in the repro?

Here:

https://github.com/arduino/Arduino/tree/ide-1.5.x/app/src/processing/app

Please be aware there are 4 branches. Do NOT use the default "master" branch, because that's the code for version 1.0.x, which is being phased out. If you use that code, you'll have to redo everything to get it accepted.

Work within the "ide-1.5.x" branch, which is the latest version.

PaulStoffregen avatar Jan 16 '15 00:01 PaulStoffregen

naamloos I have this problem too. On my Lenovo Yoga 2 Pro (3200x1800pixels) the interface looks very small.

4K screens are getting now more mainstream as well. Especially among tech savvy (arduino) user like us I assume ;-)

ilmtr avatar Mar 05 '15 11:03 ilmtr

If anyone is still following this issue and cares about Arduino gaining graphics and font scaling, please test the build on pull request #2776

PaulStoffregen avatar Mar 18 '15 04:03 PaulStoffregen

Any update on this? I'm using two windows laptops with HiDPI displays (one for work, one for home) and this is very annoying issue.

Maybe we have to switch from Swing to JavaFX which support HiDPI better (http://news.kynosarges.org/2015/06/29/javafx-dpi-scaling-fixed/).

choidamdam avatar Aug 19 '15 02:08 choidamdam

JavaFX and Swing are two totally different beasts. They can integrate with each other, but it's more about rewriting the IDE that switching

ffissore avatar Aug 19 '15 09:08 ffissore

I also value this issue. I can work-around the editing area by using 18pt font, but that only works in the actual code window. The Library and Board managers are almost unusable due to the small font being used on my high DPI monitor. Windows magnifier helps, but that is a kludge not a fix.

For reference, I'm on Windows10 64bit, and still see this behavior on IDE v 1.6.6.

Sembazuru avatar Nov 14 '15 06:11 Sembazuru

+1 I am using the same trick as Sembazuru by boosting my font size, but it's still a miserable experience trying to code from a Surface Book.

thoughtfix avatar Nov 17 '15 17:11 thoughtfix

I have the same problem, got a 4k 27" screen and you really have to squint to see any menu text

mkstephenson avatar Dec 31 '15 12:12 mkstephenson

I'm closing this one, please let's continue the discussion on #4376.

cmaglie avatar Jan 02 '16 11:01 cmaglie

@thoughtfix Same story here on a surface book.

roman-ku avatar Feb 27 '17 20:02 roman-ku

arduinohighdpi

This is a life saver! Adjusting the scaling factor to 200% worked like a charm. I am currently running ant run within the /Arduino/build/ directory from the terminal. For the total git noob here, is it possible to install/make the High DPI Arduino IDE as an bona fide application instead of following the build instructions?

philiporlando avatar Jan 23 '18 06:01 philiporlando

Sure, you can download the latest version here:

https://www.arduino.cc/en/Main/Software

cmaglie avatar Jan 23 '18 07:01 cmaglie

On my surface pro 4 using the 1.8.5 version in the code window using the size 18 you can see the characters well but the window settings, libraries, you see small while in additional URLs the text is not seen almost at all url

delucaa avatar Feb 03 '18 18:02 delucaa

@delucaa Have you tried rebooting? I noticed the same issue before a restart, but everything looks properly scaled for me now.

philiporlando avatar Feb 03 '18 18:02 philiporlando

yes but nothing ... I also tried to reinstall the program but nothing ..

delucaa avatar Feb 03 '18 18:02 delucaa

@delucaa please open a new issue, this should be an easy fix.

cmaglie avatar Feb 05 '18 09:02 cmaglie