terminal
terminal copied to clipboard
Font warning "Unable to find the following fonts" for per-user fonts (%LOCALAPPDATA%\Microsoft\Windows\Fonts) in 1.25.3131.0
Windows Terminal version
1.25.3131.0 (Store package)
Windows build number
10.0.26200.9911 (25H2)
Steps to reproduce
- Install MesloLGS NF (or Maple Mono NF CN) for the current user only, into
%LOCALAPPDATA%\Microsoft\Windows\Fonts(no admin rights). - Set
profiles.defaults.font.faceto"MesloLGS NF"in settings.json. - Launch Windows Terminal (e.g.
wt.exe -w new cmd /k echo test).
Expected Behavior
The terminal renders with the configured font without a warning, as it did before.
Actual Behavior
A dialog appears on every launch: "Unable to find the following fonts: MesloLGS NF. Please install them or choose other fonts." The same happens with Maple Mono Normal NF CN, another per-user font.
Notes
- The font files are valid. The
nametable reports familyMesloLGS NF, and in the same user session both GDI (EnumFontFamiliesEx) and DirectWrite (IDWriteFontCollection::FindFamilyNameon the system font collection) find the family. - Fonts installed to
C:\Windows\Fonts(e.g. Cascadia Mono) do not trigger the dialog. - The warning started about two weeks ago on this machine, around the time Terminal auto-updated from 1.25.2733.0 to 1.25.3131.0. I have not confirmed that the update is the cause.
- Related: #18749 (user-level font support, closed as not planned). This report is about the warning dialog appearing even though the system font APIs can find the font.
We have told the DirectWrite team about our problems with user-fonts several times. That's all we can do, since we do not own the DirectWrite code.
Personally, I recommend always installing fonts for all users. User-fonts are broken in many ways.