【Silverlight】Font Embedding

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.

发布了27 篇原创文章 · 获赞 3 · 访问量 5万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章