Lister uses incorrect font when the expected font is updated

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Lister uses incorrect font when the expected font is updated

Post by *umbra »

Steps:
  1. Make sure you do not have Cascadia Mono font installed
  2. Install Windows Terminal via Microsoft Store
  3. Configure Lister to use Cascadia Mono font
    At this point everything works as expected
  4. Update Windows Terminal to a newer version while TC is open
  5. After the update open any text file with Lister
    The font used in Lister is completely different (in my case unreadable)
    Restarting TC fixes the problem until the next update of Windows Terminal
Image: https://i.ibb.co/JCZ4xvX/font-Issue.png

Windows Terminal ships also current versions of Cascadia fonts. So when the app is updated, the font is updated, too. Maybe TC keeps some reference to it and it becomes invalid after the update? Any idea?
And yes, I'm aware that the steps to reproduce are rather ambiguous. But that's what happens with each update of Windows Terminal (I only close TC when rebooting PC).
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lister uses incorrect font when the expected font is updated

Post by *ghisler(Author) »

Configure Lister to use Cascadia Mono font
How did you do that when the font wasn't installed?
Author of Total Commander
https://www.ghisler.com
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Lister uses incorrect font when the expected font is updated

Post by *Gral »

ghisler(Author) wrote: 2022-01-28, 11:50 UTC
Configure Lister to use Cascadia Mono font
How did you do that when the font wasn't installed?
As i guess it is installed with Windows Terminal -> 2.
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Lister uses incorrect font when the expected font is updated

Post by *nsp »

if you search for CascadiaMono.ttf you will see it in the the windows terminal distribution under M$ Store location C:\Program Files\WindowsApps\Microsoft.WindowsTerminal.....
If you look on the font setting and search for Cacadia, try to uninstall it and you will see that the font was installed with MS Windows Terminal.....

You should ask support to M$ to not uninstall or update font with windows terminal !

Another workaround is to close TC when you do MS Store update for windows terminal. Give a look on https://github.com/microsoft/terminal/releases, you can download latest msixbundle and extract the msix that suit your architecture and even install it without MS Store.

To uninstall previous version, you can use bcuninstaller !

You can also extract the fonts to a separate folder to install them manually just in case !

[edit]
if you only want to get latest font, you can give a look at https://github.com/microsoft/cascadia-code/releases the latest package contain a zip with all the ttf you need !
[/edit]
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Re: Lister uses incorrect font when the expected font is updated

Post by *umbra »

ghisler(Author) wrote: 2022-01-28, 11:50 UTC How did you do that when the font wasn't installed?
Gral is correct:
umbra wrote: 2022-01-25, 17:12 UTC ...
Windows Terminal ships also current versions of Cascadia fonts. So when the app is updated, the font is updated, too.
...
2nsp
I know all that. I'm not looking for a workaround, especially when I already mentioned there was an easy one (restarting TC). I just wanted to report a bug that I haven't noticed in any other software.

And the reason why WT ships/updates also the font is simple: it uses it as its default font. And many of the updates to the font were made because WT needed them. So it makes sense that WT wants to always use the latest version of the font.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lister uses incorrect font when the expected font is updated

Post by *ghisler(Author) »

So what do you expect me to do? I don't think that there is a way to detect this situation.
Author of Total Commander
https://www.ghisler.com
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Re: Lister uses incorrect font when the expected font is updated

Post by *umbra »

The usual. Check if there is anything wrong with how TC handles fonts in Lister that could cause this issue. And if it is a limitation of using such fonts, leave it unresolved.
Windows 7 Pro x64, Windows 10 Pro x64
Post Reply