Font size in pixels

前端 未结 7 654
陌清茗
陌清茗 2020-11-29 17:14

On an iPhone how do I calculate the size of a character in pixels for a given point size?

7条回答
  •  半阙折子戏
    2020-11-29 18:06

    I will add them as I figure them out:

    A sizedToFit UILabel with a 12pt systemFont is 15px high.

提交回复
热议问题