How do i convert pt into em?

ぐ巨炮叔叔 提交于 2019-12-01 14:41:45

EM is a relative value. So the conversion is simple just cross multiply. If the body is 16px (1EM), than 2EM is 32pt and .5EM is 8pt. It works the same as percentages. One difference, percentage is 100 indexed and EM is 1 indexed.

Point is a absolute value like millimeter. A point is 1/72 of an inch. This is because a point is equal to 1/12 Pica, and 1 Pica = 1/6 inch. So 1 pt = 1/72 inch.

Pixel stands for pixel element. A pixel is the smallest unit of digital image data and without actual physical size. Screens have their pixel density measured in ppi (pixels per inch), whereas printed images are measured by dpi (dots per inch). The size of pixels depend on density of the output. A pixel can, but doesn't have to be square. An image of 10 x 10px on a LED-display (low density) is much larger than the same image printed on paper (high density).

Because a pixel doesn't have a physical size, converting it to any absolute value is only possible when you know the targeted output density. And even then you should keep in mind that modern devices give the user the ability to zoom.

Long story short: Pixel perfect Photoshop templates are outdated. If you design for screen, design the ratio between the elements. Not the actual size.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!