如何在Windows Phone 8中更改字体? [英] How to change the font in windows phone 8?

查看:55
本文介绍了如何在Windows Phone 8中更改字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在设计时,我将" Lucida手写"用于一个文本块控件.

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

但是我在模拟器上运行它需要像这样的某人字体

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

在设计时

在模拟器上运行

怎么可能.我该如何解决这种差异.请帮助我.

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

谢谢.

推荐答案

您是否在应用程序包中包括了字体文件?

Are you including the font file in your app package?

1)将想要使用的字体文件添加到项目中,并将生成操作"设置为嵌入式资源".另外,还要确保在复制到输出目录"属性中将文件复制到程序集中.2)选择您的文本块,然后在属性中下拉字体选择下拉列表.

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.

这篇关于如何在Windows Phone 8中更改字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆