Font size in pixels

前端 未结 7 652
陌清茗
陌清茗 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:05

    You can't reliably convert points to pixels as the ppi (points-per-inch) will change from monitor to monitor. Have a read;

    http://hsivonen.iki.fi/units/

    Convert Pixels to Points

    That said, some people have put together a few reference tables and calculators that may get you started;

    http://www.unitconversion.org/typography/postscript-points-to-pixels-x-conversion.html

    http://sureshjain.wordpress.com/2007/07/06/53/

提交回复
热议问题