• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker (Solved) How to create and add in fonts in Gamemaker Studio 2?

D

DetonDev

Guest
New user here! I have a very stupid problem, I can't find any tutorials on fonts! Apparently, the last complete tutorial on fonts was by Shaun Spalding, and it was for 1.4, so I decided to look on the forums. Can any of you help out?

Thanks!
 
Last edited by a moderator:
What part exactly are you stuck on?

The manual gives detailed information on what you can do with fonts:

Via IDE : The Font Editor
Via code : Fonts Reference

To create a font in the IDE, you just right-click on the Fonts section of the Resource Tree and select Create Font.

In code, you have font_add() and font_add_sprite() functions (as well as a few others to manipulate fonts) to do this.

To use a font in code use draw_set_font(name_of_your_font)

Draw Event
Code:
draw_set_font(my_font)
draw_text(x, y, "This is my cool font")
 
Top