API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.GetFont method
Gets Font
Syntax:
Function GetFont(ByRef FaceName As String, ByRef PointSize As Long, ByRef Weight As Long, ByRef Italic As Boolean, ByRef Underline As Boolean, ByRef StrikeOut As Boolean, ByRef Red As Long, ByRef Green As Long, ByRef Blue As Long) As Boolean
Parameters:
Name Type Description
FaceName
String
PointSize
Long
Weight
Long
Italic
Boolean
Underline
Boolean
StrikeOut
Boolean
Red
Long
Green
Long
Blue
Long
Remarks:
The GetFont method displays a standard Windows Font dialog box and returns the selected font settings.
Examples:
Here is a code example:
GETFONT FN, PS, Wt, Italic, UL, SO, R, G, B