Hi 我是纽约留学生,
首先我觉得你本地电脑的字体库里必须要有这种字体,然后可以给控件的FontFamily属性赋值即可,比如说TextBlock控件:
<TextBlock Text="abc" FontFamily="C:\Windows\fonts\#Rage Italic">
</TextBlock>
更多的有关指定字体的方法,可以参照这个文档:TextBlock.FontFamily 属性
也可以参考这篇博客:
Developing WPF Applications to Choose Best FontFamily and Display String (Text) for UI Elements
Best Regards,
Xavier Eoro
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.