Specifies the font to be used for the subsequent output of text. This method must be called at least once before text is output, otherwise the resulting document is invalid.
Syntax
METHOD PUBLIC SetFont : BOOL
VAR_INPUT
family : STRING := '';
style : STRING := '';
size : INT;
END_VAR
Parameters
|
Parameter |
Description |
|---|---|
|
family |
Name of one of the standard fonts (case insensitive):
|
|
style |
Defines the text formatting. Possible values for this are (case insensitive):
|
|
size |
Specifies the size of the font. The font size is specified in the measurement unit point, independent of the measurement unit defined for the document. By default, the last specified font size set with SetFontSize() or a previous SetFont() call is used. If no font size has been specified yet, the font size is 12 points. |
|
Return value |
Status of the call. |
Example
Requirements
Remarks