字体未在Interface Builder中显示 [英] Fonts not displaying in Interface Builder

查看:125
本文介绍了字体未在Interface Builder中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些原因,在设计我的iPad应用程序时,许多字体都不会显示在Interface Builder中。不幸的是我的iPad尚未交付,所以我不知道从长远来看这是否会成为一个问题,但它肯定会维持到模拟器。

For some reason many of the fonts will not display in Interface Builder when I am designing my iPad app. Unfortunately my iPad is yet to be delivered so I cannot tell if this is going to be a problem in the long run, but it certainly maintains through to the simulator.

有问题的字体在各种网站上列为与iPad兼容,但SDK 4.0.1似乎仍然很混乱。

The fonts in question are listed on various websites as being compatible with the iPad but SDK 4.0.1 still seems to be confused.

例如Hoefler Text字体分配给标签绘制直接在使用默认字体的全新iPad视图显示上。如果我单击编辑文本,它将以正确的字体显示。我已经在几台Mac上尝试了它

For example Hoefler Text font assigned to a label drawn directly on fresh iPad view displays using the default font. If I click to edit the text it displays in the correct font. I've tried it on a couple of macs now

这是一个问题因为我需要通过应用程序模拟向我的客户端发送像素完美布局的标志对于他们的后端团队:(

This is a problem as I need to send through the app mock ups to my client to sign of the pixel perfect layouts for their backend team :(

任何想法?!

推荐答案

对于其他可能感兴趣的人:XCode 3.x上的IB有一个错误/已知问题,包括非标准字体和Interface Builder。通常需要以编程方式设置自定义字体(通过[UIFont fontWithName ...)。

For others who might be interested: there is a bug/known issue with IB on XCode 3.x with non-standard fonts and Interface Builder. Custom fonts generally need to be set programatically (via [UIFont fontWithName...).

对于模型,你应该使用像PhotoShop这样的工具,而不是Interface Builder。

For mockups you should use a tool like PhotoShop, etc rather than Interface Builder.

这篇关于字体未在Interface Builder中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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