• 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!

Wrongly scaled font?

bbgames

Member
Hi,

I'm having trouble integrating a custom font. Game Maker Studio (I am using the 2.3 beta) seems to wrongly scale it.

This is how it looks in the design:
font design.png

And this is how it looks in the game:
font game.png

I am using this font: Electronic Highway Sign

Any idea how to fix it?

Thanks!
 

TheouAegis

Member
Are you running in Windowed mode or in Fullscreen? Is this the in the Draw event or in Draw GUI event? Are you using views?

Make sure you are in Windowed mode. Make sure it is the Draw event. Make sure your camera view size is the same as the view port size. Does the distortion persist? If not, then you just have a scaling issue. If it needs to be in the Draw GUI event but moving it to the Draw event alleviates it, then try calling display_set_gui_maximise(1,1,0,0) at the start. Make sure your view ports are the same as or evenly proportional to (e.g., 2x or 3x, not 1.333333x) the camera views.
 

bbgames

Member
None of the solution really helps. I played around a bit with the additional font options and anti-aliasing. Turns out the font does not really look good at small scales. Even when exporting a static image in the game's original resolution from the design file it looks chopped up or blurry. I ended up using a different font.

But thanks anyway @TheouAegis! I didn't know about display_set_gui_maximise before.
 
Top