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
版权声明:本文标题:WPFXAML FontFamily not showing Windows system font - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738562991a2099599.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论