Fonts not displaying in Interface Builder(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 中不显示字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Interface Builder 中不显示字体
基础教程推荐
- 如何比较两个 NSDate:哪个是最近的? 2022-01-01
- SwiftUI-ScrollViewReader的ScrollTo不滚动 2022-01-01
- Xcode UIView.init(frame:) 只能在主线程中使用 2022-01-01
- UIImage 在开始时不适合 UIScrollView 2022-01-01
- iOS - UINavigationController 添加多个正确的项目? 2022-01-01
- 如何将图像从一项活动发送到另一项活动? 2022-01-01
- Android Volley - 如何动画图像加载? 2022-01-01
- 为什么姜饼模拟器方向卡在应用程序中? 2022-01-01
- navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮? 2022-01-01
- Play 商店的设备兼容性问题 2022-01-01
