寻求 Silverlight 应用程序的字体策略
当我正在开发 SL3/SL4 应用程序并开始使用字体时,我发现缺乏有关字体策略的文档和最佳实践。例如:
- 是否有通用的后备字体 支持的字体集(Arial、Comic 无 MS 等)?是否有一套关于 Windows 和 Macintosh 系统之间后备字体的建议?
- 是否有支持 Silverlight 的 字体(几乎总是) 在最终用户系统上,或者 99.5% 那个时代的,比如“Times New Roman” 或“Verdana”,包括Macintosh? 有没有网站列出这个 什么样的信息?
- 有没有推荐的 月光会计 (Linux) SL 应用程序的视图和字体 是否与 Linux 一起部署 系统?
- 有没有办法在 XAML 中确定 或代码隐藏,如果最终用户有 他们的系统支持的字体吗? ID 像这样在进入时运行然后 更改 XAML 作为结果 支持正确字体的发现 或允许加载嵌入的。
- 在支持的文档中 fonts,它列出了一堆字体 “Silverlight 文本元素可以 使用以下拉丁字体,如果 在本地计算机上可用。”。 这是否意味着如果我使用字体 不在此列表中的,例如 “库珀·布莱克”和最终用户 确实他们的系统上有这种字体,他们仍然需要 下载嵌入在我的字体中的字体 应用?
任何可以导致至少回答上述一些问题的链接或指针将不胜感激。
As I'm working through an SL3/SL4 application, and starting to work with fonts, I'm finding a lack of documentation and best practices on font strategies. For example:
- Are there common fallback fonts for
the supported font set (Arial, Comic
Sans MS, etc.)? Is there a set of recommendations on fallback fonts between Windows and Macintosh systems? - Are there Silverlight-supported
fonts that will (almost always) be
on an end-user system, or like 99.5%
of the time, like "Times New Roman"
or "Verdana", including Macintosh?
Are there any sites that list this
kind of information? - Are there recommendations for
accounting for Moonlight (Linux)
views of SL apps and the fonts that
are/aren't deployed with Linux
systems? - Is there a way to determine, in XAML
or code-behind, if an end-user has a
supported font on their system? I'd
like this to run upon entry and then
change the XAML as a result of
findings to support the right font
or allow an embedded one to load. - In the documentation for supported
fonts, it lists a bunch of fonts
that "Silverlight text elements can
use the following Latin fonts if
available on the local computer.".
Does this mean that if I use a font
that is not in this list, such as
"Cooper Black", and an end-user
does have this font on their system, they will still need to
download the font as embedded in my
application?
Any links or pointers that can lead to at least some of the questions above answered would be very appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好的,我们开始吧。这些应该会让您更接近您想要的位置:
Ok, here we go. These should get you closer to where you want to be:
我认为您应该使用 MEF 将 ApplicationFonts 分成不同的包(其中将包含在即将推出的 Microsoft .NET Framework 4 的 CLR 中)。因此,根据用户操作系统,它应该加载您需要嵌入的不同字体包。
I think you should split your ApplicationFonts into different packages using MEF (which will be included in the CLR of the upcoming Microsoft .NET Framework 4). So depending on the Users OS it should load the different Font Packages that you need to embed.