How to change the font in windows phone 8?

こ雲淡風輕ζ 提交于 2019-12-23 17:16:51

问题


I use the "Lucida Handwriting" for one textblock control at design time.

But i run it on emulator it is take someone font like

At Design Time

At Run on Emulator

How is Possible. How can i solve this difference. Please Help Me.

Thanks in advance.


回答1:


Are you including the font file in your app package?

1) Add the font file that you wish to use to your project, and set the Build Action to Embedded Resource. Also ensure you are copying the file to the assembly in the "Copy to output directory" property. 2) Select your textblock, and pull down the font selection dropdown in properties.

You should see your font there, and it will be compiled into the assembly and available for use in the app.




回答2:


You may like to try out this link

http://www.jeffblankenburg.com/2010/10/24/31-days-of-windows-phone-day-24-embedding-fonts/



来源:https://stackoverflow.com/questions/16215535/how-to-change-the-font-in-windows-phone-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!