【Silverlight】Font Embedding

本文介绍了如何设置字体家族属性并从当前程序集中提取字体资源的方法。使用特定的URI语法和Application.GetResourceStream()方法来加载字体。同时,通过Microsoft提供的免费字体属性扩展工具检查字体的嵌入权限。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值