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

查看:19
本文介绍了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.

例如,分配给直接在新 iPad 视图上绘制的标签的 Hoefler Text 字体使用默认字体显示.如果我单击以编辑文本,它将以正确的字体显示.我已经在几台 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 上使用非标准字体和 Interface Builder 的 IB 存在错误/已知问题.自定义字体通常需要以编程方式设置(通过 [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天全站免登陆