[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
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) »

I'm now using Truetype fonts by default in beta 4, which support font substitution. Please let me know what you think! Some people already want the old fonts back, so there will be a checkbox for that in the next beta.
27.10.24 Added: Lister now uses resizable fonts by default for ANSI, ASCII and Variable: Consolas,11 for the first two (if available, same as Notepad) and Verdana,11 for the third (if available, otherwise Arial,11) (32/64)
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

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

Post by *AntonyD »

Consolas,11 for the first two
As a matter of fact, only at this moment there is a problem.
ALL three options should offer ALL three different but proportional fonts!
BUT they should be sharpened to show these three different types of encodings.
That is, so that for DOS text with the default font for it - I can see all the characters
in DOS encoding. Even those that come in the first values: 00h-1Fh symbols.
Consolas for these chars show "something 'nothing' = black dots" - I would call it ...
#146217 personal license
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) »

No, the first two are non-proportional fonts on purpose, it makes both source code and aligned text easier to read.
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² »

It looks good at first glance. I'll take a closer look at it later.
"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² »

As far as I can tell, the wrong behavior has been fixed. Thanks. :D

As far as the font for ASCII is concerned, no change was actually necessary due to my bug report. :mrgreen:

Although there is no right or wrong for ASCII for the characters 00h to 1Fh and 80h to FFh, because their visual representation is not defined by ASCII, for historical reasons IMHO it would not be wrong to realize a display that corresponds to code page 437.
Last edited by norfie² on 2024-11-04, 09:02 UTC, edited 2 times in total.
"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) »

characters 00h to 1Fh and 80h to FFh
Unfortunately that's not up to me to decide. If you need this, switch back to the old fonts (option will be in the next beta).
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² »

Following Uwe Sieber's website, the Lucida Console font would probably be suitable for ASCII.
"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) »

Both Lucida Console and Consolas give me just dots for characters 1 to 31 when using the OEM font option.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1726
Joined: 2011-03-11, 10:11 UTC

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

Post by *Usher »

2ghisler(Author)
As far as I know, noone TTF/OTF font does substitition with proper Unicode glyphs for character 1-31. Character 0 is empty and it can be displayed either as a dot or as an empty rectangle.
history.txt wrote: Variable: Consolas,11 for the first two (if available, same as Notepad) and Verdana,11 for the third (if available, otherwise Arial,11)
For me this choice is inconsistent with font availability. I think that the default variable font should be either the same one as used by TC GUI or the same one as used by Windows GUI.

The same note concerns monospaced fonts: In Win9x it's Monotype.com (replaced later with Andale Mono), In Win2000/XP it's Lucida Console. If you want to provide third party fonts with free license, already mentioned DejaVu family is the most universal one (multilingual with many special characters, provides monospaced, sans and serif fonts).
Andrzej P. Wozniak
Polish subforum moderator
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) »

I will not include any fonts, sorry. I'm using Consolas if available, otherwise fall back to the fonts used by older TC versions.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1726
Joined: 2011-03-11, 10:11 UTC

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

Post by *Usher »

2ghisler(Author)
Why not just use smarter fallback to fonts provided by Windows?
Andrzej P. Wozniak
Polish subforum moderator
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) »

I think it's smart enough, you can still choose a different font on older systems.
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² »

The current solution in TC 11.50ß5 works for me. I consider my bug report to be finished. Thanks. :D
"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) »

Moderator message from: ghisler(Author) » 2024-11-06, 17:44 UTC

Moved to fixed bugs
Author of Total Commander
https://www.ghisler.com
Post Reply