简体   繁体   English

Silverlight OOB中的自定义字体

[英]Custom Font in Silverlight OOB

Can anyone give me a hand on how to use Custom fonts in a Silverlight app in OOB? 谁能帮助我在OOB的Silverlight应用程序中如何使用自定义字体? It works in the browser correctly. 它可以在浏览器中正常工作。

Furthermore, the font is working and referenced correctly as the designer renders what I am after, but when running the app it is ignored. 此外,当设计师渲染我想要的内容时,字体正在工作并正确引用,但是在运行应用程序时会被忽略。

Thanks heaps 谢谢堆

Edit : 编辑:

Trying to emulate a Mutlimeter display (thus OOB) 尝试模拟万用表显示(因此OOB)

FontFamily="/BNA;component/Fonts/Fonts.zip#Crystal" FontFamily =“ / BNA; component / Fonts / Fonts.zip#Crystal”

Font Properties Build Action = "Resource" , Copy to Output Directory = "Copy Always" 字体属性Build Action = “资源” ,复制到输出目录= “始终复制”

Got it sorted, had to embed in to the client app side using 得到排序后,必须使用嵌入到客户端应用程序端

FontFamily="/BNA;component/Crysta.ttf#Crystal" and setting the Font as a Resource FontFamily =“ / BNA; component / Crysta.ttf#Crystal”并将字体设置为资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM