DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Command: FontPointsToPixels

Display all  Hide all

Command: FontPointsToPixels

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.

Return Parameters

ReturnValue The return value is an Integer variable type.

The following example assigns new font size to a control:

VBScriptPython

 

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

 

Was this information helpful?