iPhone 4 真的没有斜体吗?
在我的项目中,iPhone 4 不显示命令斜体
textLabel.font=[UIFont italicSystemFontOfSize:16];
,但 iPhone 3 正确显示斜体。
iPhone 4 真的不支持斜体吗?如果不使用systemFont,可以得到斜体吗?
谢谢,
加里
In my project, the iPhone 4 does not show italics for command
textLabel.font=[UIFont italicSystemFontOfSize:16];
but the iPhone 3 shows italics properly.
Is it true that iPhone 4 does not support italics? If not using systemFont, can you get italics?
thanks,
Gary
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
iPhone 4 使用 Helvetica Neue,而所有之前版本的 iPhone 和 iPod Touch 使用 Helvetica。这与哪一种在视网膜和正常显示器上渲染效果最好有关。由于某种原因,苹果没有包含 Helvetica Neue 字体的斜体文件,我很确定这是一个与设计相关的决定,所以不要指望这一点会改变。如果您在应用程序中绝对需要斜体,我建议您使用其他字体。
The iPhone 4 uses Helvetica Neue, whereas all prior versions of the iPhone and iPod Touch uses Helvetica. This has something to do with which one renders best on the retina and normal displays. For some reason Apple didn't include the italic files of the Helvetica Neue font, and I'm pretty sure this is a design related decision, so don't expect that to change. If you absolutely need italic in you application, I suggest you use another font.
遗憾的是,它似乎不适用于 iPhone 4。在 daring fireball 上发表了博客 ,他在此处拾取了它。
如果我是你,最好的办法就是等待。 Apple 可能会在未来的 iOS 更新中修复此问题。
Sadly yes, it does not seem to work for the iPhone 4. It was blogged about at daring fireball, who picked it up here.
If I were you, the best thing to do would be to wait it out. Apple will probably fix this issue during a future iOS update.