Unable to find the selected font "Cascadia Mono". #12857

Closed
opened 2026-01-31 03:26:49 +00:00 by claunia · 52 comments
Owner

Originally created by @Flightkick on GitHub (Mar 4, 2021).

Originally assigned to: @miniksa on GitHub.

There is a bug in the application deployment platform on recent versions of Windows that results in the Cascadia Mono font (the default font) being unreadable. Terminal cannot read it, and if it tries it will crash.

Unfortunately, that means that through no fault of your own, you'll get a dialog that says we can't find Cascadia Mono or Cascadia Code.

KNOWN SOLUTIONS

  • Either reboot or
  • choose to "Repair" the Terminal application in the "All apps" list in Settings.

repair-terminal-windows-11

ONLY COMMENT HERE IF THE WORKAROUNDS DON'T HELP
Since there are so many subscribers to this thread, we will lock it if it starts to accumulate unrelated commentary.

2021-06-10: we’ve locked it as folks haven’t read this disclaimer.

Original bug in Terminal 1.6

Environment

Windows build number: Microsoft Windows NT 10.0.19042.0
Windows Terminal version: 1.6.10571.0

Steps to reproduce

This 'happens on my machine', not sure if easily reproducible.

  • Start Microsoft Terminal

Expected behavior

Microsoft terminal opens on the default terminal

Actual behavior

A pop-up is shown with the following error message:
screenshot of the error message
Transcript:

Warning

Unable to find the selected font "Cascadia Mono".

"Consolas" has been selected instead.

Please either install the missing font or choose another one.

Additional information

Other applications, Microsoft Word, Paint.NET, show the Cascadia Mono font and allow usage without any issues.

Originally created by @Flightkick on GitHub (Mar 4, 2021). Originally assigned to: @miniksa on GitHub. There is a bug in the application deployment platform on recent versions of Windows that results in the Cascadia Mono font (**the default font**) being unreadable. Terminal cannot read it, and if it tries it will _crash_. Unfortunately, that means that _through no fault of your own_, you'll get a dialog that says we can't find Cascadia Mono or Cascadia Code. **KNOWN SOLUTIONS** * Either reboot or * choose to "Repair" the Terminal application in the "All apps" list in Settings. ![repair-terminal-windows-11](https://user-images.githubusercontent.com/18356694/164486825-c6e58a0e-51d9-4e15-a6bc-0636c44054bc.gif) **ONLY COMMENT HERE IF THE WORKAROUNDS DON'T HELP** Since there are so many subscribers to this thread, we will lock it if it starts to accumulate unrelated commentary. 2021-06-10: we’ve locked it as folks haven’t read this disclaimer. <details> <summary>Original bug in Terminal 1.6</summary> <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows NT 10.0.19042.0 Windows Terminal version: 1.6.10571.0 ``` # Steps to reproduce This 'happens on my machine', not sure if easily reproducible. - Start Microsoft Terminal # Expected behavior Microsoft terminal opens on the default terminal # Actual behavior A pop-up is shown with the following error message: ![screenshot of the error message](https://user-images.githubusercontent.com/8693699/109962748-dc4b1900-7ceb-11eb-8e47-3144d737b01d.png) Transcript: ```none Warning Unable to find the selected font "Cascadia Mono". "Consolas" has been selected instead. Please either install the missing font or choose another one. ``` # Additional information Other applications, Microsoft Word, Paint.NET, show the `Cascadia Mono` font and allow usage without any issues. </details>
Author
Owner

@Flightkick commented on GitHub (Mar 4, 2021):

Off course I think of a possible fix right after submitting the issue.

Starting Microsoft Terminal as Administrator once fixes the issue.
Subsequent runs as non-admin do not show the warning anymore.

Leaving the issue open so the maintainers can decide if this should be handled without the 'start as admin' workaround/fix.

@Flightkick commented on GitHub (Mar 4, 2021): Off course I think of a possible fix right after submitting the issue. Starting Microsoft Terminal as Administrator once fixes the issue. Subsequent runs as non-admin do not show the warning anymore. Leaving the issue open so the maintainers can decide if this should be handled without the 'start as admin' workaround/fix.
Author
Owner

@oskar commented on GitHub (Mar 5, 2021):

After upgrading to 1.6.10571.0, this happens to me as well. But starting as administrator does not help for me. Any other workaround?

@oskar commented on GitHub (Mar 5, 2021): After upgrading to 1.6.10571.0, this happens to me as well. But starting as administrator does not help for me. Any other workaround?
Author
Owner

@MuTLY commented on GitHub (Mar 5, 2021):

I'm experiencing the same behavior, this was not an issue until about a week ago. In my case, it is not finding the "Ubuntu Regular" font, and as you can see, the font is installed correctly.

image

image

image

@MuTLY commented on GitHub (Mar 5, 2021): I'm experiencing the same behavior, this was not an issue until about a week ago. In my case, it is not finding the "Ubuntu Regular" font, and as you can see, the font is installed correctly. ![image](https://user-images.githubusercontent.com/777006/110113423-d740a500-7d91-11eb-84c6-209abf3d8e20.png) ![image](https://user-images.githubusercontent.com/777006/110113553-048d5300-7d92-11eb-82d6-436856f4dfb0.png) ![image](https://user-images.githubusercontent.com/777006/110113588-140c9c00-7d92-11eb-9c62-f7c5c007601a.png)
Author
Owner

@zadjii-msft commented on GitHub (Mar 5, 2021):

Hey @miniksa can you take a look at this and #9157? We're seeing a pretty dramatic uptick in the number of these kinds of reports after adding the warning. Did we change anything about the font lookup when we added the dialog?

@zadjii-msft commented on GitHub (Mar 5, 2021): Hey @miniksa can you take a look at this and #9157? We're seeing a pretty dramatic uptick in the number of these kinds of reports after adding the warning. Did we change anything about the font lookup when we added the dialog?
Author
Owner

@J-Hoff389 commented on GitHub (Mar 5, 2021):

I have a Similar experience but with the font "Cascadia Code PL". The message does not go away if Started as Administrator.

@J-Hoff389 commented on GitHub (Mar 5, 2021): I have a Similar experience but with the font "Cascadia Code PL". The message does not go away if Started as Administrator.
Author
Owner

@Rod-in-NM commented on GitHub (Mar 5, 2021):

I've also having an issue with Windows Terminal not being able to find Cascadia Code PL. I've been using Cascadia Code PL for several months with no issues, now Windows Terminal can't find it.

@Rod-in-NM commented on GitHub (Mar 5, 2021): I've also having an issue with Windows Terminal not being able to find Cascadia Code PL. I've been using Cascadia Code PL for several months with no issues, now Windows Terminal can't find it.
Author
Owner

@miniksa commented on GitHub (Mar 5, 2021):

Hey @miniksa can you take a look at this and #9157? We're seeing a pretty dramatic uptick in the number of these kinds of reports after adding the warning. Did we change anything about the font lookup when we added the dialog?

I will not have the capacity to look at this for at least a week.

@miniksa commented on GitHub (Mar 5, 2021): > Hey @miniksa can you take a look at this and #9157? We're seeing a pretty dramatic uptick in the number of these kinds of reports after adding the warning. Did we change anything about the font lookup when we added the dialog? I will not have the capacity to look at this for at least a week.
Author
Owner

@fujiawei-dev commented on GitHub (Mar 6, 2021):

I am also suffering from this problem, after an automatic update via the Windows Store.

@fujiawei-dev commented on GitHub (Mar 6, 2021): I am also suffering from this problem, after an automatic update via the Windows Store.
Author
Owner

@ghost commented on GitHub (Mar 6, 2021):

Same thing here, Source Code Pro.

@ghost commented on GitHub (Mar 6, 2021): Same thing here, Source Code Pro.
Author
Owner

@eturnq commented on GitHub (Mar 8, 2021):

"Install for all users" fixed this trouble for me.
image

@eturnq commented on GitHub (Mar 8, 2021): "Install for all users" fixed this trouble for me. ![image](https://user-images.githubusercontent.com/17465060/110345195-f0e12700-7ff3-11eb-82ee-7e144694dfe1.png)
Author
Owner

@MuTLY commented on GitHub (Mar 8, 2021):

"Install for all users" fixed this trouble for me.
image

I've tried that and it didn't make a difference. I even rebooted the computer after reinstalling the fonts using the "Install for all users" option. On startup, Windows Terminal still complains about a missing font that's not missing and can be used anywhere else on the system ("Ubuntu Regular", in my case).

https://design.ubuntu.com/font/

@MuTLY commented on GitHub (Mar 8, 2021): > "Install for all users" fixed this trouble for me. > ![image](https://user-images.githubusercontent.com/17465060/110345195-f0e12700-7ff3-11eb-82ee-7e144694dfe1.png) I've tried that and it didn't make a difference. I even rebooted the computer after reinstalling the fonts using the "Install for all users" option. On startup, Windows Terminal still complains about a missing font that's not missing and can be used anywhere else on the system ("Ubuntu Regular", in my case). https://design.ubuntu.com/font/
Author
Owner

@Xbuduo commented on GitHub (Mar 9, 2021):

The one installed from the store has no problem. But the one installed by scoop has the same issue.

@Xbuduo commented on GitHub (Mar 9, 2021): The one installed from the store has no problem. But the one installed by scoop has the same issue.
Author
Owner

@yikakia commented on GitHub (Mar 9, 2021):

Same happens to me at

  • version 1.6.10571.0
@yikakia commented on GitHub (Mar 9, 2021): Same happens to me at - version 1.6.10571.0
Author
Owner

@WSLUser commented on GitHub (Mar 10, 2021):

I hit this issue today (don't know why not before now) but when I installed the Cascadia Code font directly to Windows, the error disappeared and the font appears as it should. It did appear to look like Consolas before doing this. So I think WT isn't reading the font files correctly from inside the msix package.

@WSLUser commented on GitHub (Mar 10, 2021): I hit this issue today (don't know why not before now) but when I installed the Cascadia Code font directly to Windows, the error disappeared and the font appears as it should. It did appear to look like Consolas before doing this. So I think WT isn't reading the font files correctly from inside the msix package.
Author
Owner

@hawko2600 commented on GitHub (Mar 11, 2021):

I had the same issue with the Store version, using "Cascadia Code PL Regular" as the font.
If I remove the "Regular" from the font string text, I do not get the error dialogue and the font loads correctly.

Edit: I should also mention, font is installed in C:\Windows\Fonts for all users and I pulled the current version of Cascadia Code PL off Github that day - version 2005.150. Earlier version also didn't load properly so I used opportunity to upgrade it.

@hawko2600 commented on GitHub (Mar 11, 2021): I had the same issue with the Store version, using "Cascadia Code PL Regular" as the font. If I remove the "Regular" from the font string text, I do not get the error dialogue and the font loads correctly. Edit: I should also mention, font is installed in C:\Windows\Fonts for all users and I pulled the current version of Cascadia Code PL off Github that day - version 2005.150. Earlier version also didn't load properly so I used opportunity to upgrade it.
Author
Owner

@Rod-in-NM commented on GitHub (Mar 11, 2021):

I never had "Cascadia Code PL Regular" as the font, only "Cascadia Code PL". And I still get that error dialogue.

@Rod-in-NM commented on GitHub (Mar 11, 2021): I never had "Cascadia Code PL Regular" as the font, only "Cascadia Code PL". And I still get that error dialogue.
Author
Owner

@lonelydev commented on GitHub (Mar 12, 2021):

I ran into a similar issue. I followed all sorts of instructions from various different posts online and I finally got powershell to recognize the right font but windows terminal would still not pick it up.
here is my powershell core rendering the font Space Mono for Powerline correctly.
image

A screenshot of the console's properties:
image

However, I tried the same in Windows Terminal and guess what?
image

settings file:
image

I got lucky and got help from smart people online by posting this question on twitter -https://twitter.com/eakangk/status/1369949792034562048?s=20

And someone responded that I was using the full name of the font and not the short name. I quickly opened the modern font setting window and searched for the font 'space' and that was when I realised, I couldn't find it.
image

However the same font would show up in the old schools c:\windows\fonts folder:
image

This prompted me to think that maybe, i didn't really install it for all users.
Luckily I had a clone of https://t.co/Xo6f5LikOV?amp=1 so I rightclicked the font and clicked install for all users.
image

and guess what happened next?
image
it appeared in Font Settings!

I couldn't wait to open up my windows terminal to check how it looked like and... wait for it....
image
it worked.

Thank you everyone for the valuable suggestions and directing me to this issue here. i had almost given up on this back in January, thinking I was taking too long to set up a prompt.

@lonelydev commented on GitHub (Mar 12, 2021): I ran into a similar issue. I followed all sorts of instructions from various different posts online and I finally got powershell to recognize the right font but windows terminal would still not pick it up. here is my powershell core rendering the font Space Mono for Powerline correctly. ![image](https://user-images.githubusercontent.com/9505396/110870639-c7aaea00-82c4-11eb-9f5d-bb72126bdfe2.png) A screenshot of the console's properties: ![image](https://user-images.githubusercontent.com/9505396/110870706-e8733f80-82c4-11eb-8706-d9d0ca4528ed.png) However, I tried the same in Windows Terminal and guess what? ![image](https://user-images.githubusercontent.com/9505396/110870740-fe810000-82c4-11eb-9eb9-32a437b7c944.png) settings file: ![image](https://user-images.githubusercontent.com/9505396/110870776-0c368580-82c5-11eb-8210-ec56c6a97b1a.png) I got lucky and got help from smart people online by posting this question on twitter -https://twitter.com/eakangk/status/1369949792034562048?s=20 And someone responded that I was using the full name of the font and not the short name. I quickly opened the modern font setting window and searched for the font 'space' and that was when I realised, I couldn't find it. ![image](https://user-images.githubusercontent.com/9505396/110870932-528be480-82c5-11eb-8677-80cea334ac31.png) However the same font would show up in the old schools c:\windows\fonts folder: ![image](https://user-images.githubusercontent.com/9505396/110870984-6c2d2c00-82c5-11eb-8824-ed9f712d0d8b.png) This prompted me to think that maybe, i didn't really install it for all users. Luckily I had a clone of https://t.co/Xo6f5LikOV?amp=1 so I rightclicked the font and clicked install for all users. ![image](https://user-images.githubusercontent.com/9505396/110871137-b7473f00-82c5-11eb-85d6-80dccda671da.png) and guess what happened next? ![image](https://user-images.githubusercontent.com/9505396/110871170-c928e200-82c5-11eb-9704-0776ed02f092.png) it appeared in Font Settings! I couldn't wait to open up my windows terminal to check how it looked like and... wait for it.... ![image](https://user-images.githubusercontent.com/9505396/110871237-e958a100-82c5-11eb-9168-557acefa9ead.png) it worked. Thank you everyone for the valuable suggestions and directing me to this issue here. i had almost given up on this back in January, thinking I was taking too long to set up a prompt.
Author
Owner

@Rod-in-NM commented on GitHub (Mar 12, 2021):

@lonelydev, I just checked my C:\Windows\Font folder. I don't have any font there named Space Mono for Powerline there. In fact, I don't have any font there that starts with Space Mono. Should I try to find that and install it?

@Rod-in-NM commented on GitHub (Mar 12, 2021): @lonelydev, I just checked my C:\Windows\Font folder. I don't have any font there named `Space Mono for Powerline` there. In fact, I don't have any font there that starts with `Space Mono`. Should I try to find that and install it?
Author
Owner

@lonelydev commented on GitHub (Mar 12, 2021):

@Rod-in-NM
seems like you need powerline fonts from https://github.com/powerline/fonts
once you clone the repo to your pc, you can then choose to install the fonts you wish to Windows right clicking the font image and then clicking install for all users.
image

That should get you the font you want.
In my case, I configured my Windows Terminal to use Space Mono, so I only selectively installed that font and it started rendering correctly.
image

@lonelydev commented on GitHub (Mar 12, 2021): @Rod-in-NM seems like you need powerline fonts from https://github.com/powerline/fonts once you clone the repo to your pc, you can then choose to install the fonts you wish to Windows right clicking the font image and then clicking install for all users. ![image](https://user-images.githubusercontent.com/9505396/110961738-0930a900-8348-11eb-89e9-fab760d5bee4.png) That should get you the font you want. In my case, I configured my Windows Terminal to use Space Mono, so I only selectively installed that font and it started rendering correctly. ![image](https://user-images.githubusercontent.com/9505396/110961727-0635b880-8348-11eb-98e2-bbd8b46fed15.png)
Author
Owner

@Rod-in-NM commented on GitHub (Mar 12, 2021):

@lonelydev I've cloned that font repo. The I installed for all users these fonts:

  • Space Mono Bold for Powerline
  • Space Mono Bold Italic for Powerline
  • Space Mono for Powerline
  • Space Mone Italic for Powerline

I didn't think I needed the others.

This hasn't helped - I'm still getting that error message whenever I get into Windows Terminal

@Rod-in-NM commented on GitHub (Mar 12, 2021): @lonelydev I've cloned that font repo. The I installed for all users these fonts: - Space Mono Bold for Powerline - Space Mono Bold Italic for Powerline - Space Mono for Powerline - Space Mone Italic for Powerline I didn't think I needed the others. This hasn't helped - I'm still getting that error message whenever I get into Windows Terminal
Author
Owner

@lonelydev commented on GitHub (Mar 12, 2021):

you still getting
image
specifically Space Mono for Powerline?
might be a bigger problem then. :'(

@lonelydev commented on GitHub (Mar 12, 2021): you still getting ![image](https://user-images.githubusercontent.com/9505396/110965010-b3f69680-834b-11eb-991c-3c717efe6277.png) specifically `Space Mono for Powerline`? might be a bigger problem then. :'(
Author
Owner

@Rod-in-NM commented on GitHub (Mar 12, 2021):

No, I'm getting this error:

Screenshot 2021-03-12 090914

@Rod-in-NM commented on GitHub (Mar 12, 2021): No, I'm getting this error: ![Screenshot 2021-03-12 090914](https://user-images.githubusercontent.com/13875530/110966681-c1435f00-8312-11eb-8756-79d038bb1c35.png)
Author
Owner

@lonelydev commented on GitHub (Mar 12, 2021):

hey @Rod-in-NM
now that you have installed Space Mono for Powerline for all users, you should probably edit your Windows Terminal settings file to have Space Mono for PowerLine as the fontFace instead.
image

However, if you prefer Cascadia Code, download it from https://github.com/microsoft/cascadia-code/releases
and do the same "Install for all users" for that one too.

You can check if it has been installed properly by doing what I did, searching both c:\windows\fonts and also the font settings window as i posted here - https://github.com/microsoft/terminal/issues/9375#issuecomment-797136185

@lonelydev commented on GitHub (Mar 12, 2021): hey @Rod-in-NM now that you have installed `Space Mono for Powerline` for all users, you should probably edit your Windows Terminal settings file to have `Space Mono for PowerLine` as the `fontFace` instead. ![image](https://user-images.githubusercontent.com/9505396/110967057-dd182680-834d-11eb-8bfc-068a87e230be.png) However, if you prefer `Cascadia Code`, download it from https://github.com/microsoft/cascadia-code/releases and do the same "Install for all users" for that one too. You can check if it has been installed properly by doing what I did, searching both c:\windows\fonts and also the font settings window as i posted here - https://github.com/microsoft/terminal/issues/9375#issuecomment-797136185
Author
Owner

@kaovilai commented on GitHub (Mar 15, 2021):

Install for all users FTW!

@kaovilai commented on GitHub (Mar 15, 2021): Install for all users FTW!
Author
Owner

@mmanueljoao commented on GitHub (Mar 17, 2021):

I'm having kind of the same problem but with another font not mentioned here. FiraCode Nerd Font.

imagem

It is both in the settings windows and the folder ... Although with different names BUT it doesn't finds it with neither.

imagem

imagem

EDIT: I tried the install/restart and the install for all users, none solved the problem.

@mmanueljoao commented on GitHub (Mar 17, 2021): I'm having kind of the same problem but with another font not mentioned here. FiraCode Nerd Font. ![imagem](https://user-images.githubusercontent.com/6817527/111552782-ef91c600-877a-11eb-9fc5-a7170e942840.png) It is both in the settings windows and the folder ... Although with different names BUT it doesn't finds it with neither. ![imagem](https://user-images.githubusercontent.com/6817527/111552855-1d770a80-877b-11eb-9d2e-51105b934aa9.png) ![imagem](https://user-images.githubusercontent.com/6817527/111552913-3b446f80-877b-11eb-884e-a3ae020efd0e.png) EDIT: I tried the install/restart and the install for all users, none solved the problem.
Author
Owner

@GenZmeY commented on GitHub (Mar 19, 2021):

I have the same problem (Windows Terminal v1.6.10571.0 and "Monospace Regular" font). Installing the font "for all users" doesn't solve the problem for me. Reinstalling windows terminal doesn't help either.

But rolling back to the previous version (v1.5.10411.0) helped me.

@GenZmeY commented on GitHub (Mar 19, 2021): I have the same problem (Windows Terminal v1.6.10571.0 and "Monospace Regular" font). Installing the font "for all users" doesn't solve the problem for me. Reinstalling windows terminal doesn't help either. **But rolling back to the previous version (v1.5.10411.0) helped me.**
Author
Owner

@amoezzis commented on GitHub (Mar 24, 2021):

It helped >
https://github.com/microsoft/cascadia-code/releases

@amoezzis commented on GitHub (Mar 24, 2021): It helped > https://github.com/microsoft/cascadia-code/releases
Author
Owner

@jkingsman commented on GitHub (Mar 31, 2021):

As potentially helpful information, it worked when specifying a font family, but not when specifying a specific font -- in this case, Hasklig worked fine but Hasklig Light (or any Hasklig $variation) did not.

image

@jkingsman commented on GitHub (Mar 31, 2021): As potentially helpful information, it worked when specifying a font family, but not when specifying a specific font -- in this case, `Hasklig` worked fine but `Hasklig Light` (or any `Hasklig $variation`) did not. ![image](https://user-images.githubusercontent.com/2365891/113073132-6072ae00-917d-11eb-86aa-67d8ce735d50.png)
Author
Owner

@miniksa commented on GitHub (Mar 31, 2021):

Sorry it took me a bit but I'm looking today.

@miniksa commented on GitHub (Mar 31, 2021): Sorry it took me a bit but I'm looking today.
Author
Owner

@miniksa commented on GitHub (Apr 1, 2021):

Okay.

Here's my plan:

  • A. I'm going to remove the string comparison test as a way of triggering this dialog box. Instead, I'm going to make the font resolution code return a bool or some sort of indicator when it decides to try the hardcoded font list (Consolas). The dialog will only pop if that flag is set. This should eliminate the scenario where the proposed name was close enough for DirectWrite to resolve it to ONE of the font's known names and we give a really dumb pop up because the string doesn't match in case (or otherwise exactly)
  • B. I'm going to add a small amount of retry resolution in the font fallback routine (prior to the previous flagging) that will trim off, word by word from the tail, the phrase that you've given us as the font and ask DirectWrite to try again. That will crudely resolve the case where people are specifying weight or other suffixes and we fall back to Consolas and show the annoying dialog.
  • C. In the future, we'll perhaps try to parse weight suffixes out of the specified font name and transform them into weight values or something more complicated. Backlog item.
  • D. For the cases where the font is somehow installed but is not turning up in the system font cache, I'm generally going to have to defer to the OS side bug. I'm not supposed to really be able to do anything if the system can't figure out the difference between per user and per system installs or mushes up the status of fonts registered by installed packages.
  • E. In the future, we'll try to have a fallback font loader that will at least attempt to get the Cascadia variants out of our own package by direct file open if the rest of the system font resolution chokes. Backlog item.

The first two (A and B) are what I want to send as a PR for this bug.
I'll file or find and link the backlog ones (C and E).
And I'll try to file or find and link the OS issue as well (D).

Finally, @DHowett and I have an alternative/interim solution:

  1. @DHowett plans to pull the dialog from stable so it at least stops annoying people and is easy to service
  2. @DHowett and I agree that if we reach the end of April and my proposed fixes get into people's hands and this is still a noisy issue... then we are going to yeet the entire dialog into space and note that it can only return once we have code that can better understand the text string for the font (like parsing out the weight as I said above) plus or minus a bead on the font file resolution problem.

Questions, comments, concerns... let me know. Otherwise just give me a thumbs up and give me a chance to get it done. Thanks.

@miniksa commented on GitHub (Apr 1, 2021): Okay. Here's my plan: - A. I'm going to remove the string comparison test as a way of triggering this dialog box. Instead, I'm going to make the font resolution code return a bool or some sort of indicator when it decides to try the hardcoded font list (Consolas). The dialog will only pop if that flag is set. This should eliminate the scenario where the proposed name was close enough for DirectWrite to resolve it to ONE of the font's known names and we give a really dumb pop up because the string doesn't match in case (or otherwise exactly) - B. I'm going to add a small amount of retry resolution in the font fallback routine (prior to the previous flagging) that will trim off, word by word from the tail, the phrase that you've given us as the font and ask DirectWrite to try again. That will crudely resolve the case where people are specifying weight or other suffixes and we fall back to Consolas and show the annoying dialog. - C. In the future, we'll perhaps try to parse weight suffixes out of the specified font name and transform them into weight values or something more complicated. Backlog item. - D. For the cases where the font is somehow installed but is not turning up in the system font cache, I'm generally going to have to defer to the OS side bug. I'm not supposed to really be able to do anything if the system can't figure out the difference between per user and per system installs or mushes up the status of fonts registered by installed packages. - E. In the future, we'll try to have a fallback font loader that will at least attempt to get the Cascadia variants out of our own package by direct file open if the rest of the system font resolution chokes. Backlog item. The first two (A and B) are what I want to send as a PR for this bug. I'll file or find and link the backlog ones (C and E). And I'll try to file or find and link the OS issue as well (D). Finally, @DHowett and I have an alternative/interim solution: 1. @DHowett plans to pull the dialog from stable so it at least stops annoying people and is easy to service 2. @DHowett and I agree that if we reach the end of April and my proposed fixes get into people's hands and this is still a noisy issue... then we are going to yeet the entire dialog into space and note that it can only return once we have code that can better understand the text string for the font (like parsing out the weight as I said above) plus or minus a bead on the font file resolution problem. Questions, comments, concerns... let me know. Otherwise just give me a thumbs up and give me a chance to get it done. Thanks.
Author
Owner

@mattbarreiro commented on GitHub (Apr 5, 2021):

I also experienced this issue when installing Terminal with Scoop, but not with the MS store version.

I found a related open request on the scoop-extras bucket: [Request] Add default font Cascadia-Mono to the Windows Terminal manifest #5783

@mattbarreiro commented on GitHub (Apr 5, 2021): I also experienced this issue when installing Terminal with Scoop, but not with the MS store version. I found a related open request on the scoop-extras bucket: [[Request] Add default font Cascadia-Mono to the Windows Terminal manifest #5783 ](https://github.com/lukesampson/scoop-extras/issues/5783)
Author
Owner

@drl-max commented on GitHub (Apr 7, 2021):

@Xbuduo, @matthewbarreiro, and to anyone who used scoop to install Terminal, I resolved this "Cascadia Mono" font issue by also installing the cascadia-code package. It requires an admin prompt and the nerd-fonts bucket.

  1. Open terminal as Administrator
  2. Run scoop bucket add nerd-fonts
  3. Run scoop install cascadia-code

Hope that helps.

@drl-max commented on GitHub (Apr 7, 2021): @Xbuduo, @matthewbarreiro, and to anyone who used `scoop` to install Terminal, I resolved this "Cascadia Mono" font issue by also installing the `cascadia-code` package. It requires an admin prompt and the `nerd-fonts` bucket. 1. Open terminal as Administrator 2. Run `scoop bucket add nerd-fonts` 3. Run `scoop install cascadia-code` Hope that helps.
Author
Owner

@miniksa commented on GitHub (Apr 7, 2021):

I have done A, B, and E in the linked PR #9734.

I will still generate a follow up for C.

On the OS side (part D), we have identified a bug with package installation and the font paths in the registry and have the relevant teams committed to fixing it.

@miniksa commented on GitHub (Apr 7, 2021): I have done A, B, and E in the linked PR #9734. I will still generate a follow up for C. On the OS side (part D), we have identified a bug with package installation and the font paths in the registry and have the relevant teams committed to fixing it.
Author
Owner

@ghost commented on GitHub (Apr 14, 2021):

:tada:This issue was addressed in #9734, which has now been successfully released as Windows Terminal v1.7.1033.0.🎉

Handy links:

@ghost commented on GitHub (Apr 14, 2021): :tada:This issue was addressed in #9734, which has now been successfully released as `Windows Terminal v1.7.1033.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.7.1033.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Apr 14, 2021):

:tada:This issue was addressed in #9734, which has now been successfully released as Windows Terminal Preview v1.8.1032.0.🎉

Handy links:

@ghost commented on GitHub (Apr 14, 2021): :tada:This issue was addressed in #9734, which has now been successfully released as `Windows Terminal Preview v1.8.1032.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.8.1032.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@sigoden commented on GitHub (Apr 22, 2021):

open Windows Terminal Settings, add/change fontFace setting

{
    "profiles": {
         "defaults":  {
                "fontFace": "Consolas"  //  edit here
@sigoden commented on GitHub (Apr 22, 2021): open Windows Terminal Settings, add/change fontFace setting ``` { "profiles": { "defaults": { "fontFace": "Consolas" // edit here ```
Author
Owner

@brucek2 commented on GitHub (Jun 4, 2021):

This just started happening to me today (wasn't happening yesterday or for weeks before.) In my case the missing font is "Cascadia Mono". I can't think of any update, config change, or anything else that should have triggered a change.

Edit: Also want to clarify that for me the biggest issue isn't having to click "OK", it's that the font I enjoyed and preferred is no longer being used for no good reason I can think of.

@brucek2 commented on GitHub (Jun 4, 2021): This just started happening to me today (wasn't happening yesterday or for weeks before.) In my case the missing font is "Cascadia Mono". I can't think of any update, config change, or anything else that should have triggered a change. Edit: Also want to clarify that for me the biggest issue isn't having to click "OK", it's that the font I enjoyed and preferred is no longer being used for no good reason I can think of.
Author
Owner

@DHowett commented on GitHub (Jun 4, 2021):

@brucek2 sorry about that. We actually had to push an update to make sure we didn't crash when this happens. I edited the original/top post on this issue to sum up what's happening.

@DHowett commented on GitHub (Jun 4, 2021): @brucek2 sorry about that. We actually had to push an update to make sure we didn't _crash_ when this happens. I edited the original/top post on this issue to sum up what's happening.
Author
Owner

@softwrx commented on GitHub (Jun 5, 2021):

It started happening to me today. Weeks no issues then all of WSL linux sessions closed, about 8 of them, while they were running tasks and without notifying me or giving me the option to delay/cancel/not update at this time! This is a very very bad update procedure as it closed active SSH connections in all of these. Fortunately I started the critical jobs via screen.

Apps, especially terminal apps, that can be open for extended periods of time while running long-running jobs should not silently just close and update in the middle of the night.

As near as I can tell an update was applied and my terminal is now 1.9.1523. Not happy that it silently updated and closed my active sessions. And now I have the missing font error too. Which I did not have before. In fact everything had been working very well before. Now it's having problems. Very annoying.

@softwrx commented on GitHub (Jun 5, 2021): It started happening to me today. Weeks no issues then all of WSL linux sessions closed, about 8 of them, **_while they were running tasks and without notifying me or giving me the option to delay/cancel/not update at this time!_** This is a very very bad update procedure as it closed active SSH connections in all of these. Fortunately I started the critical jobs via screen. Apps, especially terminal apps, that can be open for extended periods of time while running long-running jobs should not silently just close and update in the middle of the night. As near as I can tell an update was applied and my terminal is now 1.9.1523. Not happy that it silently updated and closed my active sessions. And now I have the missing font error too. Which I did not have before. In fact everything had been working very well before. Now it's having problems. Very annoying.
Author
Owner

@softwrx commented on GitHub (Jun 5, 2021):

As annoying as it was, I normally do not reboot because I might have things going for several days, I closed everything down and rebooted and it appears the error with the font has gone away.

So this "update" not only closed all my active terminal sessions without warning in the middle of the night, it also forced a reboot to fix this error.

Lest I only complain - I realize this is a preview release, so some hiccups are to be expected. I was caught off guard by the sudden closing and update without warning though. That's not good.

Other than this one issue, the preview version has been working great. My only issue is an apparent lack of a keyboard shortcut to start a new terminal window. The preview has otherwise been very useful. The terminal preview, along with WSL, has enabled my switch from Mac to Windows as I live in various unix/linux terminals most of the day with my job. Good job on it.

@softwrx commented on GitHub (Jun 5, 2021): As annoying as it was, I normally do not reboot because I might have things going for several days, I closed everything down and rebooted and it appears the error with the font has gone away. So this "update" not only closed all my active terminal sessions without warning in the middle of the night, it also forced a reboot to fix this error. Lest I only complain - I realize this is a preview release, so some hiccups are to be expected. I was caught off guard by the sudden closing and update without warning though. That's not good. Other than this one issue, the preview version has been working great. My only issue is an apparent lack of a keyboard shortcut to start a new terminal window. The preview has otherwise been very useful. The terminal preview, along with WSL, has enabled my switch from Mac to Windows as I live in various unix/linux terminals most of the day with my job. Good job on it.
Author
Owner

@bikeoid commented on GitHub (Jun 6, 2021):

I finally solved the problem with losing active terminal sessions from an automatic update by disabling automatic updates for Windows Apps. I just got the missing "Cascadia Mono" bug today also.

@bikeoid commented on GitHub (Jun 6, 2021): I finally solved the problem with losing active terminal sessions from an automatic update by disabling automatic updates for Windows Apps. I just got the missing "Cascadia Mono" bug today also.
Author
Owner

@softwrx commented on GitHub (Jun 6, 2021):

I finally solved the problem with losing active terminal sessions from an automatic update by disabling automatic updates for Windows Apps. I just got the missing "Cascadia Mono" bug today also.

Thanks @bikeoid , good idea. thuogh I'd prefer to just disable it for the terminal and not all apps. i'll look it up and see if the options are that granular.

@softwrx commented on GitHub (Jun 6, 2021): > > > I finally solved the problem with losing active terminal sessions from an automatic update by disabling automatic updates for Windows Apps. I just got the missing "Cascadia Mono" bug today also. Thanks @bikeoid , good idea. thuogh I'd prefer to just disable it for the terminal and not all apps. i'll look it up and see if the options are that granular.
Author
Owner

@rcarde commented on GitHub (Jun 7, 2021):

Lest I only complain - I realize this is a preview release, so some hiccups are to be expected. I was caught off guard by the sudden closing and update without warning though. That's not good.

@softwrx I had the same issue when auto-upgraded to 1.8.1521.0 which, as far as I know, is not pre-release. So I think the update process is borked.

@rcarde commented on GitHub (Jun 7, 2021): > Lest I only complain - I realize this is a preview release, so some hiccups are to be expected. I was caught off guard by the sudden closing and update without warning though. That's not good. @softwrx I had the same issue when auto-upgraded to 1.8.1521.0 which, as far as I know, is not pre-release. So I think the update process is borked.
Author
Owner

@crash-horror commented on GitHub (Jun 7, 2021):

Well, resetting the app, and unticking all fonts, chose cascadia code did it for me. You got limited selection ofc

@crash-horror commented on GitHub (Jun 7, 2021): Well, resetting the app, and unticking all fonts, chose cascadia code did it for me. You got limited selection ofc
Author
Owner

@stefanwendelmann commented on GitHub (Jun 7, 2021):

Had to

  1. Close Terminal
  2. Install font from https://github.com/microsoft/cascadia-code/releases for all users
  3. kill the explorer.exe process (from Task Manager)
  4. start the explorer.exe process (from Task Manager)
  5. Start Terminal

And the error was gone.

@stefanwendelmann commented on GitHub (Jun 7, 2021): Had to 1. Close Terminal 2. Install font from https://github.com/microsoft/cascadia-code/releases for all users 2. kill the explorer.exe process (from Task Manager) 3. start the explorer.exe process (from Task Manager) 4. Start Terminal And the error was gone.
Author
Owner

@ghylander commented on GitHub (Jun 8, 2021):

I know the issue is closed, but i had it happen today for the very first time ever, couldnt find cascadia mono, on v1.8.1521.0
"repaired" the app from the windows 10 settings menu, restarted terminal and it worked

@ghylander commented on GitHub (Jun 8, 2021): I know the issue is closed, but i had it happen today for the very first time ever, couldnt find cascadia mono, on v1.8.1521.0 "repaired" the app from the windows 10 settings menu, restarted terminal and it worked
Author
Owner

@ErikSchierboom commented on GitHub (Jun 8, 2021):

I had the same thing as @ghylander and the proposed solution to repair the app did indeed work for me.

@ErikSchierboom commented on GitHub (Jun 8, 2021): I had the same thing as @ghylander and the proposed solution to repair the app did indeed work for me.
Author
Owner

@kusma commented on GitHub (Jun 8, 2021):

I just triggered the same issue, but sadly "repairing" the app did nothing for me. I'm using 1.8.1521.0.

@kusma commented on GitHub (Jun 8, 2021): I just triggered the same issue, but sadly ["repairing"](https://support.microsoft.com/en-us/windows/repair-apps-and-programs-in-windows-10-e90eefe4-d0a2-7c1b-dd59-949a9030f317) the app did nothing for me. I'm using 1.8.1521.0.
Author
Owner

@kusma commented on GitHub (Jun 8, 2021):

I can also add that the font (Cascadia Mono) is installed and works fine in other applications.

@kusma commented on GitHub (Jun 8, 2021): I can also add that the font (Cascadia Mono) is installed and works fine in other applications.
Author
Owner

@magosla commented on GitHub (Jun 9, 2021):

Repairing the App did work for me

@magosla commented on GitHub (Jun 9, 2021): Repairing the App did work for me
Author
Owner

@SteveALee commented on GitHub (Jun 10, 2021):

This is a "Me too" posts but adding that in Windows terminal "about" the version is "1.8.1521.0" but latest release is only "v1.8.1444.0". huh? Deployment issues? Time to repoen this issue?

@SteveALee commented on GitHub (Jun 10, 2021): This is a "Me too" posts but adding that in Windows terminal "about" the version is "1.8.1521.0" but latest release is only "v1.8.1444.0". huh? Deployment issues? Time to repoen this issue?
Author
Owner

@DHowett commented on GitHub (Jun 10, 2021):

Please refer to the body of the first post in this issue.

@DHowett commented on GitHub (Jun 10, 2021): Please refer to the body of the first post in this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12857