标签列表
Windows Store 应用程序 - 枚举字体
c#
xaml
fonts
windows-8
windows-store-apps
4
4
如何在Windows Store应用程序中列举所有安装的字体?
System.Windows.Media.Fonts
命名空间已不再可用。
-
Robert MacLean
6
你的意思是这在你正在进行的特定项目中不可用吗?我在MSDN上找不到任何过时的通知。(http://msdn.microsoft.com/en-us/library/system.windows.media.fonts.aspx)
- Sean Dawson
System.Globalization.Fonts 命名空间。我怀疑你不会喜欢那里找到的内容。但它确实消除了字体只在特定语言中工作的古老痛苦。
- Hans Passant
@NoxHarmonium,由于WinRT是v1(包括在其上运行的.NET Framework),因此不会有弃用通知。
- Robert MacLean
@HansPassant 是的,这不是我想要的,它只显示了语言推荐(最佳)字体。并不喜欢系统上的所有字体。
- Robert MacLean
你正在编写什么样的应用程序,需要列举字体?
- Sean Dawson
@NoxHarmonium 一个文档编辑器 - 如果能够允许用户更改文档的字体就好了。
- Robert MacLean
2
个回答
2
2
我认为微软鼓励在WinRT/Windows Store应用程序中使用标准字体,就像
这里
所概述的那样。
经过一番搜索,看起来您无法枚举沙箱内的字体。
这里
是微软对类似问题的官方回复。
-
Sean Dawson
回答链接
2
2
您需要使用DirectWrite来实现此功能。请参考
DirectWrite字体枚举示例
。
-
Denis
回答链接
网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接
相关问题
5
Windows Store 应用程序 StreamSocket DataReader.LoadAsync() ObjectDisposedException
10
Windows Store应用程序(Windows 8)与UWP
4
货币格式化 - Windows Store 应用程序
3
Windows Store应用程序开发 - InvalidateRequerySuggested
4
Windows Store 应用的等宽字体
3
Windows Store 应用程序 Facebook SDK 集成
3
如何调试Windows Store应用程序崩溃?
4
Python Windows 枚举已安装字体
3
Windows Store应用程序的LongListSelector
4
何时使用Windows Store应用程序?