Lister and scaling in RDP session

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Lister and scaling in RDP session

Post by *browny »

Windows 11, 4K display with 200% scaling connecting to Windows Server 2019 where TC 10.52 64-bit is running.
TC's window looks good, internal lister is configured to use autodetect and default fonts.
Menu and context menu texts in lister are properly sized, but file text is tiny.
It is possible to untick the default checkmark and set font size manually.
Initially (possibly from autodetect) the font dialog suggested size 5 or 6.
Setting size to 12 made text display good enough.
Ticking "default" on returns to tiny text.

The best guess is that scaling was not taken into account in this configuration.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lister and scaling in RDP session

Post by *ghisler(Author) »

Menu and context menu texts in lister are properly sized, but file text is tiny.
Unfortunately the default Windows fonts SYSTEM_FIXED_FONT and OEM_FIXED_FONT which TC uses for "Ansi" and "Ascii" modes by default are bitmap fonts (not scalable) which do not have font sizes for 200% scaling. Therefore please choose different font for these mode in Lister - Options - Configure. I recommend a fixed font like Courier New or Consolas.
Author of Total Commander
https://www.ghisler.com
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: Lister and scaling in RDP session

Post by *browny »

Thanks.
An article from MS so old that it mentioned Windows 3.1
https://support.microsoft.com/en-us/topic/microsoft-supplied-monospaced-truetype-fonts-93aa7a47-2149-be09-31a9-c22df598c952
Does it make sense to add Courier New to defaults?
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: Lister and scaling in RDP session

Post by *sqa_wizard »

Does it make sense to add Courier New to defaults?
Well, if it works for you, just use it.
On the other hand: If you have a better solution, just post it here.
#5767 Personal license
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: Lister and scaling in RDP session

Post by *browny »

sqa_wizard wrote: 2023-03-18, 16:20 UTC Well, if it works for you, just use it.
Thanks for your permission, but what works was manual change of settings despite of DPI awareness.
sqa_wizard wrote: 2023-03-18, 16:20 UTC On the other hand: If you have a better solution, just post it here.
It is a discussion for finding a better solution. Maybe you missed parts of the above posts?
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: Lister and scaling in RDP session

Post by *browny »

Further experiments (there was no difference running TC locally or in a remote session).

All lister's fonts were set to default.
Font dialog for ANSI Fixedsys shows available sizes 5 and 7, for ASCII Terminal - 5 and 6.
8 is unavailabe, but the Size entry field is set to 8.
This suggests that Windows substituted font with something better than stretched bitmaps (zoomed in screenshots confirm this).
Courier New could be used as monospaced font because is expected to exist in all supported platforms, but it is hardly necessary.

As for the shown text in lister, uppercase characters for 8 points have the same size as lowercase in caption or Windows menu characters.
Looks too small and defaulting to 10 points might be a better choice, though opinions may differ on the subject.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lister and scaling in RDP session

Post by *ghisler(Author) »

8 is available at 100% scaling, but not at higher scaling factors, because 8 is not measured in pixels but in dpi-independent units.
Author of Total Commander
https://www.ghisler.com
Post Reply