DxCreateFont
Jump to navigation
Jump to search
Only available in 1.1 This function creates a font element that can be used in functions such as dxDrawText and guiSetFont
Syntax
element createFont ( string filepath[, int size=9, bool bold=false ] )
Required Arguments
- filepath: the GUI element whose visibility is to be changed
Optional Arguments
- size: size of the font
- bold: flag to indicate if the font should be bold when drawn with dxDrawText
Returns
Returns a font element if successful, false if invalid arguments were passed to the function.
Example
An example
needs doing