Add font family in resourceDictionary
问题 I am using the msdn tutorial to add a FontFamily in my Wpf application, in .csproj I have : <ItemGroup> <Resource Include="Resources\MetaOT-Norm.otf" /> <Resource Include="Resources\MetaOT-Bold.otf" /> </ItemGroup> I added the fontfamily in the ResourceDictionary, like that : <FontFamily x:Key="FontMetaOT">./Resources/#Meta OT</FontFamily> But it's not applied... (I have tried with the Font files in the windows Fonts directory and it's work well). Any idea ? 回答1: If you are using a resource