Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot override Cascadia Code #2979

Open
aaronbell opened this issue Sep 30, 2019 · 8 comments
Open

Cannot override Cascadia Code #2979

aaronbell opened this issue Sep 30, 2019 · 8 comments
Assignees
Labels
Area-Fonts Related to the font Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.
Milestone

Comments

@aaronbell
Copy link

aaronbell commented Sep 30, 2019

Environment

Win32NT 10.0.18362.0
Windows Terminal version: 0.5.2681.0

Steps to reproduce

Download the latest install of Windows Terminal from the Microsoft Store.
Install a new version of Cascadia Code (attached) via the font menu.
Open Windows Terminal.
Set Font Family in Preferences to “Cascadia Code”.
Observe that glyphs present in the older version appear (it appears that the newer font is used as a fallback for the previously-missing glyphs).

Expected behavior

Windows Terminal should use a normal process to install Cascadia Code so that it can be uninstalled or replaced as new versions of Cascadia Code are released.

Actual behavior

WindowsTerminal

Note here that the older version of the font is being used for glyphs present in the older version, but the newer font is being used for glyphs only present in the newer version.

Windows Terminal appears to have a ‘back-end’ way of installing the font file that is inaccessible and cannot be overriden even when installing through the Font Menu, or a Font manager (such as FEX).

In VS Code, the newer version of the font is ignore entirely in favor of the older version installed by Windows Terminal.

CascadiaCode.ttf.zip

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Sep 30, 2019
@DHowett-MSFT
Copy link
Contributor

Fascinating! My first guess is that when a font originates in a package, font searches starting from that package find local ones first. That’s not great for us, and something we didn’t expect.

I’m happy to follow up with the DirectWrite team on this 😄

@aaronbell
Copy link
Author

Thanks @DHowett-MSFT! This weird bug soaked up a bunch of time this morning trying to figure out where the heck the font was 😭.

@DHowett-MSFT
Copy link
Contributor

Ouch, sorry about that! Yeah, we haven’t done anything special here except throw it in the package. I’ll make sure we figure something out!

@DHowett-MSFT DHowett-MSFT self-assigned this Sep 30, 2019
@DHowett-MSFT DHowett-MSFT added Area-Fonts Related to the font Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Sep 30, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Sep 30, 2019
@DHowett-MSFT DHowett-MSFT added this to the Terminal Backlog milestone Sep 30, 2019
@DHowett-MSFT
Copy link
Contributor

(Assigning myself because I put myself on the hook for getting an answer. Thanks!)

@aaronbell
Copy link
Author

Bug referenced above is about this same issue.

@BladeMF
Copy link

BladeMF commented Aug 27, 2020

If I may step in... I think the problem is caused by these registry entries here:

image

They cause the following on my computer - although manually installed Cascadia Code and Cascadia Mono fonts appear properly both here:
image

and here:
image

they are not visible here:
image

nor VSCode can use them at all.

They are visible in the new Control Panel, however:
image

and are properly identified as coming with a package:
image

The moment I delete those registry entries, the old Windows Fonts window shows them as available and VS Code uses them. In my mind this is definately some Windows issue :-) These are the only packages which have explicit fonts so it kind of figures why this is not working in all programs. I have to say that Notepad sees them, MS Word sees them as well. I wouldn't be surprised if the Windows guys built this in, but half the software either doesn't know it exists or doesn't implement it properly.

@zadjii-msft zadjii-msft added the Needs-Discussion Something that requires a team discussion before we can proceed label Nov 15, 2021
@zadjii-msft zadjii-msft removed the Needs-Discussion Something that requires a team discussion before we can proceed label Nov 15, 2021
@zadjii-msft zadjii-msft modified the milestones: Terminal Backlog, Backlog Jan 4, 2022
@Shayan-To
Copy link

Shayan-To commented Aug 10, 2024

I burned almost my entire day trying to figure out where the buggy versions of Cascadia fonts are coming from. No search query I tried pointed me to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts (Thanks @BladeMF!) and at last I found the font paths using ProcMon (and only then I could find this issue).

Also, Windows 10's Font Settings inside the new Windows settings shows these fonts, but upon clicking on them, it crashes and exits. (This only happens if the only version of this font available is the one installed by Windows Terminal. If other versions exist, it can uninstall them, but then it crashes immediately and keeps crashing when I reopen it and click on the [now uninstalled] Cascadia fonts.)

@mominshaikhdevs
Copy link

Also, Windows 10's Font Settings inside the new Windows settings shows these fonts, but upon clicking on them, it crashes and exits. (This only happens if the only version of this font available is the one installed by Windows Terminal. If other versions exist, it can uninstall them, but then it crashes immediately and keeps crashing when I reopen it and click on the [now uninstalled] Cascadia fonts.)

Yes. exactly. happens everytime on windows 10 v19045.2728.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Fonts Related to the font Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

7 participants