[TC10.50b8 64bit] Different tooltip fonts

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
yong
Member
Member
Posts: 110
Joined: 2009-05-20, 07:23 UTC

[TC10.50b8 64bit] Different tooltip fonts

Post by *yong »

On Chinese version of Windows 10 (or other Windows 10 versions where the language for non-Unicode programs is set to Chinese),
TC 10.50 64-bit shows tooltips in a fixed-with font: https://ibb.co/GtYKVnG
But TC 10.50 32-bit uses a variable-with font: https://ibb.co/KFSMcpH

Previously TC 10.00 64-bit behaved like TC 10.50 32-bit.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.50b8 64bit] Different tooltip fonts

Post by *ghisler(Author) »

By default, TC uses the font "Tahoma" unless you have defined a font for the main window.
Maybe the font is missing and you get a substituted font?
Author of Total Commander
https://www.ghisler.com
yong
Member
Member
Posts: 110
Joined: 2009-05-20, 07:23 UTC

Re: [TC10.50b8 64bit] Different tooltip fonts

Post by *yong »

ghisler(Author) wrote: 2022-06-03, 16:13 UTC By default, TC uses the font "Tahoma" unless you have defined a font for the main window.
Maybe the font is missing and you get a substituted font?
The font I defined for the main window is Segoe UI bold, size 9, which is a native font in Windows 10 and is used for both 32- and 64-bit versions of TC 10.00 and 10.50 and only TC 10.50 64-bit has this issue.

Incidentally I find that not all tooltips in TC 10.50 64-bit are drawn in the wrong font, only tooltips for the button bars and drive bar are affected, the other tooltips (file list, tabs, synchronize, compare tool, rename tool, etc) still use the correct font.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.50b8 64bit] Different tooltip fonts

Post by *ghisler(Author) »

I have tried to reproduce it in the debugger, but the tooltips for the tabs and button bar are created and shown the same way.

Btw, I was wrong, the font used is the one you set for dialog boxes, not the one you set for the main window.

Could you post your resolution-specific font settings from wincmd.ini for your current resolution, please?
For example, if your screen resolution is full HD with 96dpi, it would look like this:
[1920x1080 (8x16)]

Thanks!
Author of Total Commander
https://www.ghisler.com
yong
Member
Member
Posts: 110
Joined: 2009-05-20, 07:23 UTC

Re: [TC10.50b8 64bit] Different tooltip fonts

Post by *yong »

ghisler(Author) wrote: 2022-06-05, 06:44 UTC I have tried to reproduce it in the debugger, but the tooltips for the tabs and button bar are created and shown the same way.

Btw, I was wrong, the font used is the one you set for dialog boxes, not the one you set for the main window.

Could you post your resolution-specific font settings from wincmd.ini for your current resolution, please?
For example, if your screen resolution is full HD with 96dpi, it would look like this:
[1920x1080 (8x16)]

Thanks!
My screen resolution is 1920x1080 with 120dpi (125% scale), the font settings for this resolution are:

Code: Select all

[1920x1080 (10x20)]
FontSize=9
FontName=Segoe UI
FontSizeWindow=9
FontNameWindow=Segoe UI
FontWeight=400
FontWeightWindow=700
FontNameDialog=微软雅黑 (Chinese name for Microsoft YaHei)
FontSizeDialog=9
FontCharsetDialog=134
FontCharset=0
FontCharsetWindow=1
There is also a section for all resolutions:

Code: Select all

[AllResolutions]
FontSize=9
FontName=Segoe UI
FontSizeWindow=9
FontNameWindow=Segoe UI
FontWeight=400
FontWeightWindow=700
FontNameDialog=微软雅黑 (Chinese name for Microsoft YaHei)
FontSizeDialog=9
FontCharsetDialog=134
FontCharset=0
FontCharsetWindow=1
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.50b8 64bit] Different tooltip fonts

Post by *ghisler(Author) »

The font name in Chinese may be the problem. Can you try changing this to Arial just for testing, please?
Author of Total Commander
https://www.ghisler.com
yong
Member
Member
Posts: 110
Joined: 2009-05-20, 07:23 UTC

Re: [TC10.50b8 64bit] Different tooltip fonts

Post by *yong »

ghisler(Author) wrote: 2022-06-06, 06:58 UTC The font name in Chinese may be the problem. Can you try changing this to Arial just for testing, please?
Yes, the font name in Chinese is the culprit.

When I change the font name from Chinese to its English equivalent (微软雅黑 -> Microsoft YaHei), the tooltips are shown in the correct font.

Before:
https://ibb.co/tPsP4Rs

Code: Select all

[AllResolutions]
FontNameDialog=微软雅黑
FontSizeDialog=9
FontCharsetDialog=134

Code: Select all

[1920x1080 (10x20)]
FontNameDialog=微软雅黑
FontSizeDialog=9
FontCharsetDialog=134
After:
https://ibb.co/fQDg0mb

Code: Select all

[AllResolutions]
FontNameDialog=Microsoft YaHei
FontSizeDialog=9
FontCharsetDialog=134

Code: Select all

[1920x1080 (10x20)]
FontNameDialog=Microsoft YaHei
FontSizeDialog=9
FontCharsetDialog=134
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.50b8 64bit] Different tooltip fonts

Post by *ghisler(Author) »

Great, that will help me find the reason of the problem, thanks for your help.
Author of Total Commander
https://www.ghisler.com
yong
Member
Member
Posts: 110
Joined: 2009-05-20, 07:23 UTC

Re: [TC10.50b8 64bit] Different tooltip fonts

Post by *yong »

Solved. Thanks a lot. :D
Post Reply