iPhone和Mac字体问题 [英] iPhone and Mac fonts problem

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

问题描述

我尝试使用尺寸为13磅​​的Helvetica字体。我有一个问题,因为我用这个字体和字体大小创建了一些带有文字的图像。将它添加到我的iPhone项目中,然后我创建了一个UILabel,在这个在photoshop中创建的图像上添加了顶部,我使用了相同的字体和字体大小,它完全不同。为什么?

I try to use Helvetica font with size 13 pt. I have a problem, because I created an image with some text with this font and font size. Added it to my iPhone project, then I created a UILabel, added top on this image which was created in photoshop, I've used the same font and font size and it's totally different. Why is that?

推荐答案

在iOS中,字体大小以像素为单位,而不是可能解释差异的点。

In iOS, the font size is in pixels instead of points which might explain the difference.

这篇关于iPhone和Mac字体问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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