• 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 Custom font is not displayed correctly

P

pytong07

Guest
I am using Google's Noto Sans fonts. Somehow the font is not showing up correctly. How can I fix this?

This is what I am seeing right now. Any help is appreciated!
 

Attachments

Last edited by a moderator:

TheouAegis

Member
Make sure you are loading it in at a valid font size. GM creates sprites based on the size you choose to load the font with.

I've had better luck drawing my fonts to a surface at the proper scale and then letting the surface get scaled rather than the font.
 
P

pytong07

Guest
Thank you so much!

In the end I had to use a smaller font size and the text are displayed normally now. I was using a font size of 100 for some text, but turned out the font was created with a maximum size of 80. As long as the font size is smaller than or equal to 80, the text shows up normally.
 
Top