lucasFont.createDefaultFont: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|name = lucasFont.createDefaultFont
|side = client
|type = function
|type = function
|name = lucasFont.createDefaultFont
|games = iii vc sa iv
|parameters = float size, string family, [ string style = "Regular" ]
|desc = create a font object using a default font
|parameter1 = float size The font size.
|arg1 = float size The font size.
|parameter2 = string family The font family name.
|arg2 = string family The font family name.
|parameter3 = string style optional "Regular" The font family style.
|arg3 = [string style = "Regular"] The font family style.
|returnTypes = Font
|return = Font the font object that was created
|usage = create a font object using a default font
|freturn = bool false
|returnInfo = the font object that was created
|returnFail1 = bool false
}}
}}

Latest revision as of 20:36, 19 November 2022

Function Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Client 1.0.0

Font lucasFont.createDefaultFont(float size, string family, [ string style = "Regular" ])

The lucasFont.createDefaultFont function is used to create a font object using a default font.

Parameters

1) float size The font size.
2) string family The font family name.
3) string style Optional, defaults to "Regular". The font family style.

Return

Font The font object that was created.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Client Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png font.measure
icon-iii.png icon-vc.png icon-sa.png icon-iv.png font.render
icon-iii.png icon-vc.png icon-sa.png icon-iv.png font.size