ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DIAdem Help

Command: FontPointsToPixels

  • Updated2024-09-12
  • 1 minute(s) read

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"