Skip to main content
unsigned_char_array
Lead III
Nov 13, 2026 10:08 AM UTC
Question

editor font not monospaced when using fractional scaling

Editor font not monospaced when using fractional scaling. I use the default font Consolas.

Tested in STM32CubeIDE 2.2 and 1.19 on Windows 11.
 

My ini file has 150% scaling so you can click icons without pixel hunting:

-vmargs
-Dswt.autoScale=150

(from this answer: 

 

 

Font size 10 (also with 9) letter D is moved half a character width:

Font size 11 looks good:

It may be the same issue as 

But that user supplied no screenshots.

4 replies

unsigned_char_array
Lead III
Nov 19, 2026 9:18 AM UTC

In my opinion this is a bug

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
TDK
Nov 19, 2026 3:12 PM UTC

In the 7 years since that ticket, Eclipse works fine with regular/default application scaling. Icons and text are all scaled appropriately. What happens if you delete the autoScale setting? My scaling is 175% and no issues here. Ensure dpi scaling settings for the exe are set to default (application) as well.

"If you feel a post has answered your question, please click ""Accept as Solution""."
unsigned_char_array
Lead III
Nov 19, 2026 5:24 PM UTC

If I remove autoscale settings the icons in STM32CubeIDE are so small they take longer to spot and are easier to miss. It’s unreadable and unusable.


Windows does not support proper per application scaling and if I have to scale my entire windows system everything looks like senior mode and it wastes pixels. So that’s not an option for me. I now have a 1440p screen, which works great without scaling with most applications. But CubeIDE is too small.

In my opinion the font rendering should select the nearest (or rounded up) font size that renders properly if scaling is enabled.

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
TDK
Nov 19, 2026 6:07 PM UTC

Ahh, so you want STM32CubeIDE to be scaled differently than the system default. I’m not sure that’s supported in any capacity. Hard to find much information on swt.autoScale.

"If you feel a post has answered your question, please click ""Accept as Solution""."