terminal icon indicating copy to clipboard operation
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

Open gujunxiang opened this issue 2 weeks ago • 1 comments

Windows Terminal version

1.25.3131.0 (Store package)

Windows build number

10.0.26200.9911 (25H2)

Steps to reproduce

  1. Install MesloLGS NF (or Maple Mono NF CN) for the current user only, into %LOCALAPPDATA%\Microsoft\Windows\Fonts (no admin rights).
  2. Set profiles.defaults.font.face to "MesloLGS NF" in settings.json.
  3. 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 name table reports family MesloLGS NF, and in the same user session both GDI (EnumFontFamiliesEx) and DirectWrite (IDWriteFontCollection::FindFamilyName on 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.

gujunxiang avatar Nov 20 '26 05:11 gujunxiang

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.

lhecker avatar Nov 20 '26 16:11 lhecker