简体   繁体   中英

Adding an external font to WP7 app

我想要我的WP7应用程序控件并且有一个不在Visual Studio字体选择中的某种字体,如何将字体添加到Visual Studio的字体列表或直接添加到我的控件中?

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. :)

在此输入图像描述

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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