Command: FontPointsToPixels

DIAdem 2018 Help

Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)

DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help
DIAdem 2020 SP1 Help

Converts a font size into pixel. DIAdem includes the DPI settings of the system.

ReturnValue = FontPointsToPixels(FontPoints)

Input Parameters

FontPoints Specifies the font size in points.
Floating-point number variable
0 <= FontPoints <= 1E300

Return Parameters

ReturnValue The return value is an Integer variable type.

The following example assigns new font size to a control:

Control.Font = -FontPointsToPixels(8) & ",0,0,0,700,0,0,0,0,3,2,1,34,Arial"



Not Helpful