Skip to main content

graphics.system_font()

graphics.system_font(param_table)

This function creates a system font object representing the fonts registered in the Windows operating system.

Parameters

ParameterTypeDescription
param_tabletableThis parameter is in associative array table format, meaning it's specified by keys rather than parameter positions. See the Parameters Table section.

Parameters Table

KeyTypeDescription
family_namestringThe name of the font family. This parameter is required.
weightnumberA value that indicates the font weight. A numeric value from 1 to 999 can be specified for this parameter.
The default value is 400.
stylestringSpecifies the font style as either normal, oblique, or italic.
The default is normal.
heightnumberThe logical size of the font in the logical unit of the rendering context.
When the SystemFont object returned by this function is set on a rendering context associated with a bitmap, it is interpreted in pixel units. Conversely, when set on a rendering context associated with a view, it is interpreted according to the coordinate system of the Canvas view element.
This parametaer is required.

Return Values

This function returns a SystemFont object.

See Also