How to get the correct font sizes from Photoshop into iOS

前端 未结 3 1125
面向向阳花
面向向阳花 2021-02-05 18:46

I have a design in an psd file. So I copied all text properties (fontname, size (in pt), color, etc) into code and run it. I did a screenshot and compared that to the design. I

相关标签:
3条回答
  • 2021-02-05 19:02

    I think the easiest way (not sure if the most accurate one) would be to take pixel values (not point ones) from Photoshop and use those instead. Assuming you are designing Photoshop files that are 320x480 (not retina) this should work nicely and quite accurately.

    Here's a sample, left is in Photoshop at size 12px and right is in iOS Simulator at 12pt. Sample 12px vs 12pt

    0 讨论(0)
  • 2021-02-05 19:02

    Photoshop ratina images-12Pt = Ios-6Pt(X=2*Y) photoshop not ratina images-12pt = Ios-12pt(X=Y)

    0 讨论(0)
  • 2021-02-05 19:17

    You have to change document resolution to 144 pixels/Inch and keep screen width 640px (for portrait orientation). Goto Image > Image Size > Resolution

    0 讨论(0)
提交回复
热议问题