Font display changes in Linux/Wine

rsterenb's profile image rsterenb posted 3 years ago in General Permalink

Hi,

I'm using HeidiSQL 12.0.0.6476 with Fedora 35 (KDE Plasma 5.24.4) and Wine 7.5.

GUI font: <Default system font> Style theme: Windows

When I start HeidiSQL, all is fine. However, when I do anything that pops up a window, like checking if there is an update or open the Preferences, the font suddenly changes to bold. The connection/database box font immediately changes, the grid cell font changes when I hover over them.

It does not matter which Windows version I select in "winecfg", or if I change any of "CSMT", "VAAPI", "Hide Wine version" or "Enable GTK3 Theming" settings in the winecfg "Staging" tab, or if I change the font to, say, Arial with size 10 in the Preferences (to make sure that Tahoma is not used, since apparently there are issues with that font).

I'm hoping that this is a known issue for which a solution exists.

ansgar's profile image ansgar posted 3 years ago Permalink

v12 comes with basic high DPI support. Is that bold font perhaps caused by scaling? Watch out in the log panel at the bottom, which says something like "Scaling controls to ... %"

rsterenb's profile image rsterenb posted 3 years ago Permalink

Could well be something like that.

  • Right after connecting to a server, the fonts look fine and the log panel says: / Scaling controls to screen DPI: 100% /
  • After checking for a new version, nothing happened in the log panel, but the font look changed. There is no additional "scaling" message in the log panel when I e.g. click any of the tables and additional output is shown in the log panels.
nrazon's profile image nrazon posted 3 years ago Permalink

after upgrading to v12 font on menu items become very big and unreadable. :( I hope it fix in near future.

1 attachment(s):
  • heidi1
ansgar's profile image ansgar posted 3 years ago Permalink

@nrazon I suppose that is on Windows, not in Wine? This is surely not related to what @rsterenb reported.

Please

  • check your screen DPI settings (100%, 125%, ..?)
  • check if you override your DPI settings in your HeidiSQL taskbar icon
  • disable the dark theme in HeidiSQL testwise
nrazon's profile image nrazon posted 3 years ago Permalink

at log panel it writes: "/ Scaling controls to screen DPI: 100% /"

I was using material theme which is dark and beautiful. I changed it to light theme to test but still font are huge on menu.

ansgar's profile image ansgar posted 3 years ago Permalink

Please use the "Windows" theme, not the "Light" or similar. "Windoes" is the default theme, and disables theming.

What about the settings of your taskbar icon? Should look like this:

Description

These are the default settings. No need to change anything if you did not modify these. I'm just asking because there are various users which are overriding DPI settings.

nrazon's profile image nrazon posted 3 years ago Permalink

@ansgar I didn't modify dpi settings as seen on screenshot. (heidi2.png)

I tried Windows theme now and yes that solves huge font problem (heidi3.png). Any chance to use black theme with normal fonts like older versions :( I was using black theme for a very long time and using a white theme hurts my eyes.

2 attachment(s):
  • heidi2
  • heidi3
ansgar's profile image ansgar posted 3 years ago Permalink

Ok, in that case this is probably a Windows 11 related issue, although HeidiSQL/Material on Win11 has no issues here:

Description

Anything special on your Windows version?

You could try to use one of the other dark themes, preferrably "Glow", which is the most modern one.

nrazon's profile image nrazon posted 3 years ago Permalink

I tried Glow theme but that doesn't solve. Noting special on my windows 11, don't have special overrides. standard installation. Windows 11 Pro - 21H2

rsterenb's profile image rsterenb posted 3 years ago Permalink

Is there anything I can do or test for my issue when using Wine?

ansgar's profile image ansgar posted 3 years ago Permalink

I'm afraid no. I suspect that's a Wine issue. I heard Wine 7.7 is available so you could update probably.

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