开发者

iPhone and Mac fonts problem

开发者 https://www.devze.com 2023-01-19 06:16 出处:网络
I try to use Helvetica font with size 13 pt. I have a problem, because I created an image with som开发者_JAVA百科e text with this font and font size. Added it to my iPhone project, then I created a UI

I try to use Helvetica font with size 13 pt. I have a problem, because I created an image with som开发者_JAVA百科e 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?


1 inch = 72 pt = 96 px, which means 9pt = 12px


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

0

精彩评论

暂无评论...
验证码 换一张
取 消