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
Parameter | Type | Description |
---|---|---|
param_table | table | This parameter is in associative array table format, meaning it's specified by keys rather than parameter positions. See the Parameters Table section. |
Parameters Table
Key | Type | Description |
---|---|---|
family_name | string | The name of the font family. This parameter is required. |
weight | number | A value that indicates the font weight. A numeric value from 1 to 999 can be specified for this parameter. The default value is 400. |
style | string | Specifies the font style as either normal , oblique , or italic .The default is normal . |
height | number | The 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.