-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Unable to find the selected font "Cascadia Mono" in Windows 10 #12420
Comments
Again?! :( This was a really annoying issue some 5+ months ago. Not great that it's popped up again. |
Thanks for the suggestion! Please make sure to search for duplicates when filing new issues. This is already being tracked by another issue on our repo - please refer to #11648 for more discussion. /dup #11648 |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
FYI: When I implemented a fix I used APIs which only work on Windows 11. |
I'm repurposing this issue to submit a change for Windows 10 support. |
By replacing `IDWriteFontSetBuilder2::AddFontFile` with `IDWriteFactory5::CreateFontFileReference` and `IDWriteFontSetBuilder1::AddFontFile` we add nearby font loading support for Windows 10, build 15021. This commit also fixes font fallback for AtlasEngine, which was crashing during testing. Finally it fixes a bug in DxEngine, where we only created a "nearby" font collection if we couldn't find the font in the system collection. This doesn't fix the bug, if the font is locked or broken in the system collection. This is related to #11648. ## PR Checklist * [x] Closes #12420 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Build a Debug version of Windows Terminal * Put Jetbrains Mono into the writeable AppX directory * Jetbrains Mono is present in the settings UI ✅ * DxEngine works with Jetbrains Mono ✅ * AtlasEngine works with Jetbrains Mono ✅
By replacing `IDWriteFontSetBuilder2::AddFontFile` with `IDWriteFactory5::CreateFontFileReference` and `IDWriteFontSetBuilder1::AddFontFile` we add nearby font loading support for Windows 10, build 15021. This commit also fixes font fallback for AtlasEngine, which was crashing during testing. Finally it fixes a bug in DxEngine, where we only created a "nearby" font collection if we couldn't find the font in the system collection. This doesn't fix the bug, if the font is locked or broken in the system collection. This is related to #11648. ## PR Checklist * [x] Closes #12420 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Build a Debug version of Windows Terminal * Put Jetbrains Mono into the writeable AppX directory * Jetbrains Mono is present in the settings UI ✅ * DxEngine works with Jetbrains Mono ✅ * AtlasEngine works with Jetbrains Mono ✅ (cherry picked from commit f84ccad)
By replacing `IDWriteFontSetBuilder2::AddFontFile` with `IDWriteFactory5::CreateFontFileReference` and `IDWriteFontSetBuilder1::AddFontFile` we add nearby font loading support for Windows 10, build 15021. This commit also fixes font fallback for AtlasEngine, which was crashing during testing. Finally it fixes a bug in DxEngine, where we only created a "nearby" font collection if we couldn't find the font in the system collection. This doesn't fix the bug, if the font is locked or broken in the system collection. This is related to #11648. * [x] Closes #12420 * [x] I work here * [x] Tests added/passed * Build a Debug version of Windows Terminal * Put Jetbrains Mono into the writeable AppX directory * Jetbrains Mono is present in the settings UI ✅ * DxEngine works with Jetbrains Mono ✅ * AtlasEngine works with Jetbrains Mono ✅ (cherry picked from commit f84ccad)
🎉This issue was addressed in #12554, which has now been successfully released as Handy links: |
This is not fixed in Preview 1.13.10983.0 |
My Windows Terminal Preview was updated today, so it is clear that update is still broken. What is a workaround? |
@srdjanjovcic Are you seeing this with specifically "Cascadia Mono" or "Cascadia Code"? That's HIGHLY unexpected even with this fix. Which OS version are you on? |
@zadjii-msft It is "Cascadia Mono" (can't stand the ligatures). I am on Windows 10. |
@zadjii-msft Yes, the entire nearby font loader function can only exit with debug logs on error. It should be possible to see what's going on with DebugView. |
Well, my repro is already gone, unless you have debug logs in some file in somewhere (temp folder?) This is Windows 10.0.19044.1586, latest publicly available version (21H2). |
Just updated Windows Terminal Preview on other Windows 10 machine (same version), and bug didn't repro. |
@srdjanjovcic I think I've figured out what went wrong. See #12904. |
Windows Terminal version
1.13.10336.0
Windows build number
10.0.19044.0
Other Software
I have both Windows Terminal (1.11.3471.0) and Windows Terminal Preview (1.13.10336.0) installed. The Store says Windows Terminal Preview updated today, but both apps are unable to find the "Cascadia Mono" font, which I'm told should be bundled with the app.
Steps to reproduce
Open Windows Terminal Preview
Expected Behavior
A "Warning" popup does not appear.
Actual Behavior
A "Warning" popup in the Terminal window appears with the following text
The text was updated successfully, but these errors were encountered: