在Xcode 4.1中添加自定义字体 [英] Add Custom Fonts In Xcode 4.1

查看:158
本文介绍了在Xcode 4.1中添加自定义字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在y应用程序中使用自定义字体。

i want to use custom fonts in y application.

我在info.Plist文件中声明了应用程序提供的字体

i have declared the "Fonts provided by the application" in the info.Plist file

并将label.font设置为带/不带.TTF扩展名的字体

and set the label.font to the font with name with / without the .TTF extension

将TTF文件拖入项目并将文件复制到项目

draged the TTF file in to the project and copied the file to the project

创建了标签的出口,但仍然无效。

created an outlet to the label but still, nothing works.

如果有人知道那边发生了什么,我想得到一些帮助。

if someone knows what is going on over there i would like to get some help.

最近我注意到这个问题已知为@ 4.1(xcode版本)。

recently i have noticed the this problem are known @ the 4.1 (xcode version).

TNX:)

推荐答案

字体名称不是名称的文件。你想要做的是双击Finder中的字体。

The font name isn't the name of the file. What you want to do is double click on the font in Finder.

这应该在Font Book中打开,如此图片

This should open it in Font Book like this image

您想要的字体名称是我所拥有的标题中的字体名称以红色突出显示。

The font name you want is the one in the title which I've highlighted so attractively in red.

这篇关于在Xcode 4.1中添加自定义字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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