如何在Silverlight 4中枚举本地字体 [英] how to Enumerate local fonts in silverlight 4

查看:187
本文介绍了如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆