The concept and correspondence of PT PX

Source: Internet
Author: User

The width of a 10 pt font is required for a webpage today. After thinking about it for a long time, I did not calculate it. I checked the information and finally calculated it. by the way, let's take a look at the pt ps and DPI concepts:

PT: in the printed layout, "point" is an absolute unit. It is equal to 1/72 inch. It can be measured by a ruler in a physical inch.

PS: Our display is divided into pixels, and a single pixel can only have one color (for simplicity, we will not discuss the next pixel anti-sawtooth technology). It should be displayed on the screen, you must first convert the length in PT units to the length in pixels. The conversion media is DPI (in fact, the so-called DPI here, is the term used in operating systems and browsers, I .e., PPI, pixels per inch, which is different from DPI in scanners, printers, and digital cameras ).

In XP, the default PPI of IE browser is 96. In fact, 9pt = 9*1/72*96 = 12px.

I used 10pt, 10pt = 10*1/72*96 = 13.3px = 14px.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.