如何在Silverlight 4中枚举本地字体 [英] how to Enumerate local fonts in silverlight 4
本文介绍了如何在Silverlight 4中枚举本地字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
SystemTypefaces
System.Windows.Media.Fonts
类的静态属性。这提供了一个集合字体
对象列出系统字体文件夹中找到的字体集合。I heard about silverlight 4 can use local fonts. So, is there a way fo enumerate them? I just want to have them shown into a listbox.
解决方案
Use the SystemTypefaces
static property of the System.Windows.Media.Fonts
class. This provides a collection go Typeface
objects listing the set of fonts found in the system font folder.
这篇关于如何在Silverlight 4中枚举本地字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文