Page 1 of 1

Font sizes in Lister are too large

Posted: 2020-03-25, 14:34 UTC
by Nop
I am trying to adjust the font size in the lister window in TC9.50. It does not use the size I select but substitutes a size several points larger.
For ANSI view, I want the font Lucida Console, but setting the size behaves strangely:
- Select size 9 in the font dialog => Lister options show "Lucida Console - 12", size in lister view is about 12
- Select size 12 in the font dialog => Lister options show "Lucida Console - 16", size in lister view is about 16

Re: Font sizes in Lister are too large

Posted: 2020-03-25, 15:06 UTC
by ghisler(Author)
This isn't a bug. Font size 9 means 9 virtual points. One point is defined as about 1/72 of an inch. The negative number displayed in the lister options is the font size in screen pixels. The higher the screen resolution, the higher this value. For example, on a 96dpi screen (100% scale in Windows), a font point suze of 9 gives a pixel height of 12 (9x96/72).

Re: Font sizes in Lister are too large

Posted: 2020-03-25, 15:33 UTC
by Nop
I am having a hard time understanding this as a feature.
- In the font selection dialog I select a point size and there is also a sample preview. Naturally, I would expect that the font size in the lister is the same as shown in the preview.
- The behaviour is inconsistent. When i select 9pts in the font dialog, it is scaled up to 12pts. But when I open the font dialog again, 12pts is selected there, which will be upscaled to 16pts. The font size becomes larger every time I open the font dialog. If the scaling is intended as you describe it, I would expect the point size to be downscaled back to virtual points before it is used in the font dialog (back to the 9pts I originally selected in my example)

Re: Font sizes in Lister are too large

Posted: 2020-03-25, 16:32 UTC
by ghisler(Author)
I cannot reproduce that, sorry. They are 12 pixels high, not 12 points.

Re: Font sizes in Lister are too large

Posted: 2020-03-25, 17:21 UTC
by petermad
2Nop
The font size becomes larger every time I open the font dialog
I cannot confirm this.

Re: Font sizes in Lister are too large

Posted: 2020-03-25, 18:16 UTC
by Horst.Epp
Nop wrote: 2020-03-25, 15:33 UTC ...
The font size becomes larger every time I open the font dialog.
...
Can not confirm.
The configured fonts and sizes stay for me, regardless of how many times I open the dialog.

Re: Font sizes in Lister are too large

Posted: 2020-03-26, 17:57 UTC
by Nop
As a picture says more than a 1000 words, here's what I see (windows 10, Text size 100%, resolution 2560x1440
Image: https://i.postimg.cc/J4psDFD0/grafik.png

Re: Font sizes in Lister are too large

Posted: 2020-03-26, 22:59 UTC
by petermad
A video also says more tahna a 1000 words: https://madsenworld.dk/tcmd/listerfont.mp4 - no problem

Testet with TC 9.51 x64 under Windows 10 Home 1909, system text size 100%

2Nop
Could you try and test it with a clean ini file - maybe your wincmd.ini file is corrupted.

Re: Font sizes in Lister are too large

Posted: 2020-03-27, 09:28 UTC
by ghisler(Author)
Maybe it's a problem with multiple screens with different DPI? Or you changed screen resolution without restarting Windows afterwards?

Re: Font sizes in Lister are too large

Posted: 2020-03-29, 12:38 UTC
by Nop
That is possible, I have two monitors with 2500 and 1900 resolution. The machine starts up on the laptop screen and switches to the monitors during windows startup. There are two visible changes of resolutions during startup. There are no manual screen changes later.

Re: Font sizes in Lister are too large

Posted: 2020-03-30, 10:27 UTC
by ghisler(Author)
I see - what scaling factors do the two screens use, e.g. one 100% and one 150%? You can see this in the display settings (right click on the desktop).

Re: Font sizes in Lister are too large

Posted: 2020-04-04, 09:33 UTC
by Nop
The smaller screen is running at 100% and the larger screen is running at 125% to compensate for the higher resolution.

Windows considers the 100% screen display 1, total commander windows are opened on the 125% screen.

If TC somehow uses the display2 scale for upscaling and the display1 scale for downscaling, this would explain the discrepancy.

Re: Font sizes in Lister are too large

Posted: 2020-04-06, 15:18 UTC
by ghisler(Author)
Thanks for the extra info. Now when exactly does the problem occur? Do I have to run TC on screen 1 (100%) or screen 2 (125%)? Do I have to open Lister on screen 1 or screen 2?

Re: Font sizes in Lister are too large

Posted: 2020-04-06, 17:52 UTC
by Nop
As I wrote above, TC and Lister are all running on display 2 with 125%, display 1 is acutally the secondary display, it's just there.

It occurs every time I use the font settings dialog.