DIAdemヘルプ

Command: FontPointsToPixels

  • 更新日2024-09-12
  • 2分で読める

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"