Sets the font used to draw text.


GML Code Example


Argument Description
font The name of the font to use.

Returns: N/A


This function will set the font to be used for all further text drawing. This font must have been added into the font assets of the game or have been created using either the font_add or font_add_sprite. You may also set this to -1 to default to drawing text using a 12point Arial font.


GML Code Example

 draw_text(200, 200, "Hello World" );

The above code will draw the given text using the font indexed in the variable "fnt_Game" and coloured blue.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here