更改为自定义字体xaml(Windows Phone) [英] Changing to custom font xaml (Windows Phone)

查看:92
本文介绍了更改为自定义字体xaml(Windows Phone)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将ttf保存在名为Font的文件夹中,并尝试使用将文本设置为font

I have the ttf in a folder called Font and I'm trying to set the text to the font using

FontFamily="Font/compctab.ttf#Compacta Bd Bt"

在我的另一个项目中,它起作用了,而在这个不变的地方,这是我在我的项目中起作用的东西

On my other project it worked and on this one its not changing here is what I have on my project that works

FontFamily="Fonts/ninjanaruto.ttf#Ninja Naruto"

我什至将ttf放在文件夹中并复制了代码,但是它仍然无法正常工作...

I even put that ttf in the folder and copied the code, but its still not working...

推荐答案

,您需要使用表情混合,并使用字体管理器添加电话.然后将字体设置为BlendResource,然后可以使用

you need to use expression blend and add the phone using Font Manager. This then sets the font as BlendResource and can then be used

有关分步说明,请参阅之前的帖子

See the post before for step by step instructions

http://www.markarteaga .com/custom-fonts-in-windows-phone-7-with-expression-blend/

这篇关于更改为自定义字体xaml(Windows Phone)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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