admin管理员组

文章数量:1202004

We are using XAML to create and print customer-specific layouts from a WPF application (.NET 4.8). The customer sent me a .TTF which I installed as system font. I can see it in system settings "Fonts", CharacterMap and use it in MS-Office and GIMP. However, when I use it in WPF/XAML's FontFamily property it's not recognized and the default font is used. I have tried various versions of the font name, to no avail.

In Windows Fonts Settings it shows a vertical marker "NO GLYPHS" but still displays the font correctly. I have converted the .TTF to .OTF with an online tool, but the result is the same.

UPDATE 01/27/2025: Here are the two problematic .ttf files

Why can other applications see/use the font but not WPF?

本文标签: WPFXAML FontFamily not showing Windows system fontStack Overflow