如何在WPF应用程序中使用otf字体? [英] How can I use otf fonts in a WPF application?
本文介绍了如何在WPF应用程序中使用otf字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的一个应用程序中使用一系列otf字体。
我试图寻找它在Google上,但我只找到了这个,但我不知道在哪里可以放置这些代码:
< 项目 DefaultTargets = 构建 xmlns = http://schemas.microsoft.com/developer/msbuild/2003 > <! - 其他项目构建设置...... - >
< ItemGroup > < < span class =code-leadattribute>资源 包含 = resources \ Peric.ttf / > < 资源 包含 = resources \ Pericl.ttf / > < / ItemGroup < span class =code-keyword>> < / Project >
<
你能帮助我吗?
非常感谢!
JYmmy097
解决方案
看看这里:
http://msdn.microsoft.com/en-us/library/vstudio/ms771464%28v=vs.90%29.aspx [ ^ ]
好的,找到解决方案:
/ Main;组件/字体/ #EffectEighty
Hi,
I would like to use a serie of otf fonts in one of mine application.
I tried to look for it on Google, but I only found this, but I don't know where can I put those line of code:
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!-- Other project build settings ... -->
<ItemGroup> <Resource Include="resources\Peric.ttf" /> <Resource Include="resources\Pericl.ttf" /> </ItemGroup> </Project>
<
Can you help me?
Thanks a lot!
JYmmy097
解决方案
Hi,
Have a look here:
http://msdn.microsoft.com/en-us/library/vstudio/ms771464%28v=vs.90%29.aspx[^]
Ok, found solution:
/Main;component/Fonts/#EffectsEighty
这篇关于如何在WPF应用程序中使用otf字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文