New DPI settings result in huge fonts

dicks's profile image dicks posted 5 years ago in General Permalink

On Win10 (when set to 175% scaling - default is 150%) the app does not scale correctly after last update (see screenshot).

1 attachment(s):
  • Aufnahme2
ansgar's profile image ansgar posted 5 years ago Permalink

Yes, that's what was reported in issue #718 too. I pushed another change this morning, please update and test again.

By the way, 100% is the default scaling. 150% is probably be set on your primary screen?

However, the issue shows on some Win10 systems with multiple monitors and different DPI settings. Even not for me, for some reason, althoug I run one screen with 100% and one with 175%. That's why I committed that broken one yesterday. There's always some magic scaling done by Windows, and some of which the application has to do.

dicks's profile image dicks posted 5 years ago Permalink

Unchanged after last update. I am using a Surface Pro 3 where the standard DPI is 150%. But I set it to 175%.

dicks's profile image dicks posted 5 years ago Permalink

Btw - I am only using the Surface screen, no external monitors.

tonymarston's profile image tonymarston posted 5 years ago Permalink

I am having the same problem. I am using a single monitor on a Lenovo ThinkPad X1 Carbon 5th Signature Edition where the scaling is 150% and resolution in 1920 x 1080. As soon as I installed this update all the fonts became HUGE as can be seen in the attached screenshot.

1 attachment(s):
  • HeidiSQL
ansgar's profile image ansgar posted 5 years ago Permalink

Just to be sure: you did not perhaps set a custom font and font size in

  • Preferences > General > GUI font
  • and Preferences > SQL > Editor font

?

Please post the size settings here.

ansgar's profile image ansgar posted 5 years ago Permalink

I also recall I did not take into account the first screen may also have a non-100% DPI setting. Will check that.

tonymarston's profile image tonymarston posted 5 years ago Permalink

On my Preferences->General tab the GUI font is set to 'Default system font' with the size set to 8pt. I have never bothered using any custom fonts as I am (or was) perfectly happy with the standard font.

Code modification/commit 2ebbdc6 from Ansgar Becker <anse@heidisql.com>, 5 years ago, revision 10.2.0.5636
Issue #718: Fonts may still be too large because the monitor on which a form is created has DPI > 100%. Calculate DpiScaleFactor based on that first monitor. See https://www.heidisql.com/forum.php?t=34230
ansgar's profile image ansgar posted 5 years ago Permalink

A new build is available, which calculates the scale factor of a HeidiSQL window based on the monitor on which it was created. Please update and test.

And thanks for being patient, and for feedback!

tonymarston's profile image tonymarston posted 5 years ago Permalink

That works OK now for me, but for some reason the font size on the Preferences->SQL tab was set to 24pt, so I had to change it to 10pt. It now sticks at 10pt, so I'm happy. Thanks for such a quick resolution.

stevehomer's profile image stevehomer posted 5 years ago Permalink

Description

Installing on a seriously nice machine. This is the only bit of SW so far that has broken the 4k display.

Downloaded most recent download about 20 mins ago.

In passing once again a million thanks for this useful little prog! Steve

ansgar's profile image ansgar posted 5 years ago Permalink

Sign. I start to think I should just revert that non-working DPI stuff in HeidiSQL, and instead rely on the Windows mechanism with blurred fonts:

Description

ansgar's profile image ansgar posted 5 years ago Permalink

Latest build now removes all tweaks for high DPI monitors. I'm giving up here, this does all not work good enough, even different computers and Windows versions behave differently. It's a mess. So, now HeidiSQL is zoomed by Windows again, like it was in earlier v9.5. This does at least display all controls and fonts in the right dimensions.

dicks's profile image dicks posted 5 years ago Permalink

Can confirm that font size is now back to "normal". Thx

stevehomer's profile image stevehomer posted 5 years ago Permalink

Oh great leader Ansgar. You constantly amaze me. Thanks for the stunningly quick response.

I am beyond broke but I tried to give you Euros 5 but Paypal have gone back to not allowing you to pay via them without creating an account. As I loath the living guts of PP nothing will make me sign up for them.

So please just know that I really really appreciate all your efforts. Now when I get rich ...

All the best Steve

ansgar's profile image ansgar posted 5 years ago Permalink

Oh let me take your post and shout it at the world, and of course Paypal.

Thanks Steve!

Please login to leave a reply, or register at first.