GameMaker: Studio

GameMaker: Studio

View Stats:
Custom Fonts
Hey! So I Want To Have Diffrent Fonts In My Games. And I Dont Know How To Import Them Or If You Even Can, Does Anyone Know?
< >
Showing 1-2 of 2 comments
The Winter Bud May 8, 2019 @ 12:01pm 
Game maker gives you the use of any font that you have installed on your computer. see FONTS [docs.yoyogames.com] for more information.

For drag and drop you would use the draw actions. [docs.yoyogames.com] under Draw Font

for code you would the draw_set_font(font)[docs.yoyogames.com]
draw_set_font(fnt_myfont) draw_text(10,10,"My text");
Last edited by The Winter Bud; May 8, 2019 @ 12:05pm
Alcator May 25, 2019 @ 2:14pm 
Originally posted by Dan:
Hey! So I Want To Have Diffrent Fonts In My Games. And I Dont Know How To Import Them Or If You Even Can, Does Anyone Know?

One way to do this is to create a sprite with all the letters of your intended language arranged in sequence at equal spacing (ABCDEF....Zabcdefg...z), and then, when you want to display some text ...

such as:
txt = 'YOUR NAME'


then you use a for loop from 0 to [length of this text] - 1
where you take the "Nth" letter from the text, take its ORD value of that character and use that to locate the section of the sprite image to copy into the game window.

This way you can ensure that your texts will always look the same.
< >
Showing 1-2 of 2 comments
Per page: 1530 50