2019-09-20 01:09 AM
Hi, just installed STM32CubeIDE 1.0.2 on a laptop with a 4k UHD display.
The editor (the Eclipse part) displays fine, but the Target Selector and "Cube" interface are really small. How to fix this please?
Thanks
Solved! Go to Solution.
2019-09-20 03:48 AM
It all has to do with Eclipse and Java. It was not designed for high dpi in mind. You can also try pre-scaling under the Win10 System settings. And don't forget to log a bug with STM.
2019-09-20 01:38 AM
In stm32cubeide.ini put -Dswt.autoScale=200 below -vmargs. If icons too big try 150.
2019-09-20 02:30 AM
Thanks hansd56, this does change the scaling in the editor (Eclipse) but not in the Cube (File - New - STM32 Project) which is still displayed with really small fonts.
2019-09-20 03:03 AM
Hi sorry, I should have read it properly. Delete the above line. If you are on Windows right click the shortcut->properties. Select Change high DPI settings. Tick Overide ... and select System. If you are on Linux no idea.
2019-09-20 03:14 AM
This does work on Windows 10, the cube displays properly, despite being slightly blurry.
However now the editor is blurry as well and does not benefit from the high DPI anymore.
I guess that's a side effect of the STM32CubeIDE 2-in-1 solution... Is there another way other than installing the STM32CubeMX separately?
2019-09-20 03:48 AM
It all has to do with Eclipse and Java. It was not designed for high dpi in mind. You can also try pre-scaling under the Win10 System settings. And don't forget to log a bug with STM.
2020-04-27 09:37 AM
This topic was already discussed at several places, and an STM-employee gave me the really easy and working tipp to change the text size here:
Window > PREFERENCES > STM32Cube > Device Configuration Tool > Font size
This works for most of the too small text sizes in the Target selector and the Cube interface.
...Just a pitty they hide it so well and I don't understand, why the CubeIDE isn't able to read back the resolution of the used screen in order to adapt this automatically?!
BTW: Take care, those settings also have an influence to the CubeMX, if you're using this as well. While it was easy to change the screen scaling in MX (just make right-click to the exe file and change the DPI settings there when starting up the program), this didn't have any effect for the CubeIDE anymore on my PC. Because of that the up-scaling is now too big on my CubeMX, when changing the settings as described above...
Good luck and happy coding! :grinning_face:
2020-12-24 01:45 AM
Running Linux Mint 20 Xfce I could get normal icon and text size starting STM32CubeIDE with the following variables, I have a script containing one line:
GDK_DPI_SCALE=0.5 GDK_SCALE=2 /opt/st/stm32cubeide_1.5.0/stm32cubeide
2024-02-06 03:42 PM - edited 2024-02-06 03:44 PM
Thanks! its work for me!
150 is great!
2024-10-08 02:01 AM
The best solution not affecting the rest of your setup