Font size and other measurement units

Source: Internet
Author: User

We often use graphics objects to draw texts during programming. However, sometimes the width of the text cannot be obtained to precisely locate the position of the text, and font can be used for the font height. it is a headache to get the width of the height attribute ......

A label control (set autosize to true) is often used to measure the length of the text, but it is always uncomfortable .......

Later, we found that:

The relationship between the font size and pixels is about. 4. For example, if the font 20 is used, its width is 28 pixels. The font 15 is 21 pixels in width.

The relationship between the font size and the millimeters is about. 35. For example, the print width of the font 20 is 7mm. The printing width of the font no. 50 is 17.5mm.

Note: The system! is used in the test!

Supplement: As the Print Document printdocument of the crystal report uses the inch concept, 1mm = 3.937 units are drawn.

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.