set the FontFamily propery, you need to use this format:
FontFileName#FontName
to pull the resource out of the current assembly, this code uses the Application.GetResourceStream() method and a specialized URI syntax that always takes this form:
AssemblyName;component/FontResourceName
you can check a font's embedding permissions using Microsoft's free font properties extension utility, which is available at http://www.microsoft.com/typography/TrueTypeProperty21.mspx. Once you install this utility, right-click any font file, and choose Properties to see more detailed information about it.
本文介绍了如何设置字体家族属性并从当前程序集中提取字体资源的方法。使用特定的URI语法和Application.GetResourceStream()方法来加载字体。同时,通过Microsoft提供的免费字体属性扩展工具检查字体的嵌入权限。
1549

被折叠的 条评论
为什么被折叠?



