TC10.50b1x64: Wrong font name shown in font configuration

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

Moderators: Hacker, petermad, Stefan2, white

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

TC10.50b1x64: Wrong font name shown in font configuration

Post by *yong »

In Configuration -> Display -> Font, the font name is shown as garbled text if a Chinese font (Microsoft YaHei, for instance) is selected.

This is a new behaviour not observed in TC10.00 32/64 bit or TC10.50 32 bit.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *ghisler(Author) »

Thanks, I will check whether I made any changes to this function - probably when adding support for "extra light" fonts.
You will have to check the fix in beta 2, though, because all my Chinese fonts have English names...
Author of Total Commander
https://www.ghisler.com
yong
Member
Member
Posts: 116
Joined: 2009-05-20, 07:23 UTC

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *yong »

TC10.50b2x64: not fixed yet.
User avatar
AntonyD
Power Member
Power Member
Posts: 1563
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *AntonyD »

yong wrote: 2022-04-14, 03:18 UTC In Configuration -> Display -> Font, the font name is shown as garbled text if a Chinese font (Microsoft YaHei, for instance) is selected.
Can you show an example of this "wrong" text?
This is my ver:
[img]https://i.ibb.co/z2VdDdH/1.png[/img]
looking pretty good, isn't it?
#146217 personal license
User avatar
AntonyD
Power Member
Power Member
Posts: 1563
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *AntonyD »

2*ghisler(Author)
Can you add in this dialog the field which will hold MY text for rendering in groupbox "Example"/"Образец"
Like you somehow did with hyperlink "Show an additional fonts"/"Показать дополнительные шрифты" below.
This link definitely is not a standard link - in all another programs where I can change the font - this dialog looks differently.
So this means that It can be reconfigured somehow for user's needs.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *ghisler(Author) »

2yong
It works for me when using German umlauts (the text is only supporting ANSI, so only local codepage).

2AntonDudarenko
He meant the dialog where you click on the "Change font" button, after confirming the dialog for which you show the screenshot. The problem only happens when the font NAME is not in English (latin letters). Do you have any fonts in the list with a cyrillic name?
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1563
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *AntonyD »

He meant the dialog where you click on the "Change font" button, after confirming the dialog for which you show the screenshot. The problem only happens when the font NAME is not in English (latin letters).
Ok - I did that and for the mentioned Microsoft YaHei I did not get any garbled text on the next dialog:
[img]https://i.ibb.co/LNnbPRQ/1.png[/img]
now do we talk about "that" ↑ dialog?
Do you have any fonts in the list with a cyrillic name?
If you ask me about the list from my initial screenshot - then NO. All font names in this dlg are in English.

And what about my prev. question:
"Can you add in this dialog the field which will hold MY text for rendering in groupbox "Example"/"Образец"
Like you somehow did with hyperlink "Show an additional fonts"/"Показать дополнительные шрифты" below.
This link definitely is not a standard link - in all another programs where I can change the font - this dialog looks differently.
So this means that It can be reconfigured somehow for user's needs."
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *ghisler(Author) »

Ok - I did that and for the mentioned Microsoft YaHei I did not get any garbled text on the next dialog:
That's because the name is in English (latin letters). When using a Korean Windows, it seems to show the name in Korean (Hangul), and only then there is a problem. Unfortunately I couldn't make my German and English Windows installations show Korean fonts with Korean names, even when changing the locale to Korea.

Regarding your sample, I could add a new entry to the wincmd.ini.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1563
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *AntonyD »

Regarding your sample, I could add a new entry to the wincmd.ini.
That would be really nice and helpful. Since you could see in my initial screenshot that as an example in this dialog a string with completely unnecessary characters is exposed, and therefore it is absolutely impossible to evaluate the appearance of the font with my native letters on this example.
And if this option is introduced - then I can insert a suitable set of characters, by which the task of selecting a font will be much easier and faster.
#146217 personal license
yong
Member
Member
Posts: 116
Joined: 2009-05-20, 07:23 UTC

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *yong »

AntonDudarenko wrote: 2022-04-21, 12:51 UTC
yong wrote: 2022-04-14, 03:18 UTC In Configuration -> Display -> Font, the font name is shown as garbled text if a Chinese font (Microsoft YaHei, for instance) is selected.
Can you show an example of this "wrong" text?
This is my ver:
[img]https://i.ibb.co/z2VdDdH/1.png[/img]
looking pretty good, isn't it?
Here are two screenshots from TC 10.00 x64 and TC 10.50 x64:

TC 10.00 x64:
https://ibb.co/j3zHrBJ

TC 10.50 x64:
https://ibb.co/pRkr9vQ

In order to show the font name in Chinese, Chinese language support must be added in the first place:
On Window 10: Windows Settings -> Time & Language -> Language -> Preferred Languages -> Add a language -> Chinese (Simplified, China)
The Windows display language can be anything that's allowed.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *ghisler(Author) »

2yong
Thanks, in the meantime I did my own tests and added Korean as display language. The font names appear in Korean only when I set the display language to Korean, not when I set it ti English. But this way I can indeed reproduce the display error! I will try to find a solution.
Author of Total Commander
https://www.ghisler.com
yong
Member
Member
Posts: 116
Joined: 2009-05-20, 07:23 UTC

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *yong »

Fixed in TC10.50b3 x64.

Thank you, Mr Ghisler!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC10.50b1x64: Wrong font name shown in font configuration

Post by *ghisler(Author) »

Thanks a lot for reporting! It's very helpful to get such reports, because I never get to see the problem on Windows with Western encoding.
Author of Total Commander
https://www.ghisler.com
Post Reply