Draw_set_font - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
NOTOC {{-}}
Notation
Description
Sets the font used when drawing text.
Parameters
- font, index of the font resource
Return Values
This function has no return values.
Example Call
draw_set_font(fnt_hud);
draw_text(5, 5, "FPS: " + string(fps));
Demonstrates setting the font to one used for drawing on the HUD, and then drawing the frames per second in the top left corner with it.