Adding an external font to WP7 app

风格不统一 提交于 2019-12-23 20:35:36

问题


I want my WP7 app controls and to have a certain font which is not in Visual studio font selection, how can I add the font to the font list of Visual studio or directly into my controls?


回答1:


Here's a post showing how to embed fonts in a silverlight project (see the section 'Custom Fonts'): http://blogs.silverlight.net/blogs/msnow/archive/2009/09/09/97060.aspx

I haven't tested this in a windows phone project but it should work.




回答2:


This can be easily done using Expression Blend.

In your project, select a TextBlock and go to the Properties panel, under Text section, there is a Font Manager button (see below), click it and then you can select the font you want in a popup window.

Expression Blend will automatically create a Fonts folder and put all the embedded fonts in there, really easy to use. :)



来源:https://stackoverflow.com/questions/8079009/adding-an-external-font-to-wp7-app

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