Draw set font

This function sets the font to be used when drawing text. This does not apply to text drawn via, which will always use the font. Providing an invalid font index will set the font to the default GML font, Arial.

Syntax
draw_set_font( font );

Returns
N/A

Basic
// draw_hud.gml // draws the text "Hello" aligned to the left using "medFont" above the player's hud draw_set_font( asset_get( "medFont" ) ); draw_set_halign( fa_left ); draw_text_transformed( temp_x, temp_y - 30, "Hello", 1, 1, 0 );