[TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

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

Moderators: Hacker, petermad, Stefan2, white

User avatar
MaxX
Power Member
Power Member
Posts: 1166
Joined: 2012-03-23, 18:15 UTC
Location: UA

[TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *MaxX »

Subj.
Just improve something simple like already existing UseNewDefFont=0 or else.

Reasons:

1.
Can't set needed font manually.
ANSI Fixedsys Regular 10 - works fine
ASCII Terminal Regular - there's no needed size.

Any solutions, please?

2.
See screenshot https://i.imgur.com/Wy890kQ.png
New font does not show 00h-1Fh symbols.
That is important for any DOS texts or regular binary files. These different bytes should look different, but not as a "blank nothing".

3.
New font has less contrast, but that would be no problem if I can use Terminal again.
Last edited by MaxX on 2024-10-30, 23:53 UTC, edited 1 time in total.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *petermad »

See also: https://ghisler.ch/board/viewtopic.php?p=462799#p462799


One qustion though - if UseNewDefFont=0 or as I suggested UseOldDefaultFonts=1 is implemented, what should happen if the default font box it ticked and the user clicks the [ ... ] button - should TC suggest the old Fixedsys and Terminal fonts or should TC suggest the new Consolas fonts?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MaxX
Power Member
Power Member
Posts: 1166
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *MaxX »

2petermad
Looks related, yes.
Screenshots show right the same what I mean as #1.

Here's my test file for HEX on my screenshots: https://0x0.st/-3_F.bin
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *ghisler(Author) »

This has been added to beta 5, please try it!
Author of Total Commander
https://www.ghisler.com
User avatar
MaxX
Power Member
Power Member
Posts: 1166
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *MaxX »

I've just noticed it. Thanks. Problem is solved now.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *petermad »

history.txt wrote:31.10.24 Added: Lister configuration dialog: New option "Use old non-scalable default fonts" to use the bitmap fonts used by Total Commander 11.03 and older (32/64)
Confirmed added and working in TC 11.50b5 :-)

But the new setting for this:

Code: Select all

[Lister]
OldDefaultFonts=1
is not documented in the Help.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *ghisler(Author) »

Confirmed. Is the following OK?
OldDefaultFonts=0
0: Use new scalable default fonts (e.g. Consolas for ANSI) when available
1: Use old not scalable bitmap fonts (ANSI_FIXED_FONT etc.)
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.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *white »

Alternative:
OldDefaultFonts=0
Use the old default fonts used by Total Commander in the past.
0: Use scalable default fonts when available (e.g., Consolas for ANSI)
1: Use old non-scalable bitmap fonts (e.g., ANSI_FIXED_FONT for ANSI)
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *petermad »

I would suggest:
OldDefaultFonts=0
0: Use scalable default fonts (e.g. Consolas for ANSI and ASCII) when available
1: Use old non-scalable bitmap fonts (ANSI_FIXED_FONT etc.)
The fonts are not "new", and they are used for both ANSI and ASCII. "non-scalable" instead of "not scalable", because non-scalable is used in the "Configure Lister" dialog

BTW - I just tested it - OldDefaultFonts=1 also affects the setting of "Variable" where it uses System,-16,b in stead of Verdana,-15 - which can not be scaled with Ctrl+Wheel.
So with OldDefaultFonts=1 it is also necessary to manually set "Variable" to a scalable font in order to use Ctrl+Wheel

So maybe this is better:
OldDefaultFonts=0
0: Use scalable default fonts (e.g. Consolas for ANSI and ASCII and Verdana for Variable) when available
1: Use old non-scalable bitmap fonts (ANSI_FIXED_FONT etc.)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MaxX
Power Member
Power Member
Posts: 1166
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *MaxX »

I think that OldDefaultFonts should NOT affect "Variable" at all. Let it change only ansi and ascii fonts.
Or not?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *ghisler(Author) »

Why shouldn't it affect "Variable"? The old default font was SYSTEM_FONT, which is also a bitmap font and can't be zoomed.
The whole idea of using new fonts was to make the text scalable.

Btw, the default ANSI font is called SYSTEM_FIXED_FONT, not ANSI_FIXED_FONT, and the ASCII font OEM_FIXED_FONT.
Author of Total Commander
https://www.ghisler.com
User avatar
MaxX
Power Member
Power Member
Posts: 1166
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *MaxX »

Ok, no problems then.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *petermad »

ghisler(Author) wrote:Btw, the default ANSI font is called SYSTEM_FIXED_FONT, not ANSI_FIXED_FONT
Then i suggest this for the Help:
OldDefaultFonts=0
0: Use scalable default fonts (e.g. Consolas for ANSI and ASCII and Verdana for Variable) when available
1: Use old non-scalable bitmap fonts (SYSTEM_FIXED_FONT etc.)
OR
0: Use scalable default fonts (e.g. Consolas for ANSI and ASCII and Verdana for Variable) when available
1: Use old non-scalable bitmap fonts (SYSTEM_FIXED_FONT, OEM_FIXED_FONT and SYSTEM_FONT)
OR - less technical:
0: Use scalable default fonts (e.g. Consolas for ANSI and ASCII and Verdana for Variable) when available
1: Use old non-scalable bitmap fonts (Fixedsys, Terminal and System)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *ghisler(Author) »

(Fixedsys, Terminal and System)
This isn't entirely correct - when you set Terminal manually for ASCII/DOS, you can't set the right size, only very small (9) or too large (14). I don't know where OEM_FIXED_FONT actually gets its font from. :(
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.50b4] Need option to get old fonts fot ANSI, ASCII

Post by *white »

ghisler(Author) wrote: 2024-11-08, 09:26 UTC I don't know where OEM_FIXED_FONT actually gets its font from. :(
As a sidenote, do you know which font is used for the title bar of Lister? I have this filename (see below) with Samaritan script in it, which is displayed fine by Lister's title bar, but I cannot get it to be displayed the same anywhere else with my installed fonts. The only way I could find to display the font is by selecting the font "Sans Serif Collection" of Windows 11. But then the size is too small compared to the other fonts. See this image.

Filename:

Code: Select all

c:\TEST3\ming\ࠀࠁࠂࠃࠄࠅࠆࠇࠈࠉࠊࠋࠌࠍࠎࠏࠐࠑࠒࠓࠔࠕ.txt
File contents:

Code: Select all

Lister - [c:TEST3\ming\ࠀࠁࠂࠃࠄࠅࠆࠇࠈࠉࠊࠋࠌࠍࠎࠏࠐࠑࠒࠓࠔࠕ.txt]


Unrelated, but also interesting: Recent versions of Windows Notepad seem to do more than font fallback and displays the Samaritan script correctly, even when the font for Notepad is set to Consolas. (It does not display in TC's Lister when the font is set to Consolas, nor when using older Notepad versions.)
Post Reply