[TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

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

Moderators: Hacker, petermad, Stefan2, white

User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

[TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *norfie² »

The lister option 7 "UTF-8" (with "standard" font in settings) looks crazy e.g. WCMD_ROM.LNG that is in UTF-8. The ellipsis … (UTF-8 0xE2 0x80 0xA6) is displayed incorrectly as a rectangle. If you look at this with suitable Lister plug-ins, UTF-8 looks normal.
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *white »

Press V (Variable char width)?
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *norfie² »

The same applies to the display of the ellipsis … with option 1 "Text" "coding" with codepages 1250 until 1256 and …
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *norfie² »

Variable char width doesn't fix the problem. It uses a unsuitable font too.
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *white »

norfie² wrote: 2024-10-18, 12:46 UTC Variable char width doesn't fix the problem. It uses a unsuitable font too.
Yes, the font "System" doesn't seem to have that character.
Why is that a bug?
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *norfie² »

The problem is that TCmd pretends to display in UTF-8 or Windows codepages 1250 to 1256, but does not do it (100% correctly).
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *norfie² »

Let's take the file WCMD_CZ.LNG, which uses codepage 1250. It looks strange with the correct setting, i.e. options 1 "Text", "Ansi" and Encoding 1250. There are a lot of rectangles in it.
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *ghisler(Author) »

Unfortunately I didn't find a perfect Truetype or Opentype replacement font for the SYSTEM font yet.
Author of Total Commander
https://www.ghisler.com
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *norfie² »

What is wrong with Consolas and Segoi UI?
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
cpp64
Member
Member
Posts: 110
Joined: 2023-05-12, 16:03 UTC

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *cpp64 »

norfie² wrote: 2024-10-18, 17:29 UTC What is wrong with Consolas and Segoi UI?
TC supports Win9x and XP also.
There is no Consolas.
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *norfie² »

2cpp64
Because it doesn't work on completely outdated systems, should it also not work on slightly outdated and current systems?
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *norfie² »

Perhaps it wouldn't be a bad idea to include one font with a variable font width and one with a fixed font width.

Noto is designed as a typeface for the world. "All Noto fonts are licensed under the Open Font License."
https://fonts.google.com/noto/fonts?lang=en_Latn
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *white »

I think Notepad++ and Windows Notepad use a font linking mechanism. Perhaps that would also be feasible for TC.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *ghisler(Author) »

Windows itself uses font linking, but it doesn't seem to work with bitmap fonts like SYSTEM.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.50ß2] Lister - UTF-8 display uses unsuitable font

Post by *white »

ghisler(Author) wrote: 2024-10-20, 08:56 UTC Windows itself uses font linking, but it doesn't seem to work with bitmap fonts like SYSTEM.
Yes, I got confused ;)
Post Reply