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.