Custom Font

Neptune

Member
Hello!
I'm wondering how to implement\create a custom font for GM:S.

Are there templates?
Where do I put the "font sprite sheet" for GM:S?
Is it legal to change a font, like Times New Roman?
Are there any open source custom fonts people know of?

Any help/ideas/suggestions are greatly appreciated!
Thank-you,

Vether
 
Are you trying to use font_add_sprite()? If so:

- Yes, sort of. If you just use font_add_sprite(), the sprite subimages are ordered by their ASCII value. You can find the values here: http://web.cs.mun.ca/~michael/c/ascii-table.html
If you're using font_add_sprite_ext(), you can specify up-front what characters the subimages should be.

- Add a sprite. That's it, really.

- It depends on the font. See the font license for more information.

- I don't know of any personally. I usually make my own.
 
I see! Thanks for reply.
As far as using font_add_sprite is there a way to keep the colors I draw the font characters with?

For instance a white font outlined in black? Or will GM:S draw the sprite in all one color, like c_black?

And do you have a recommended character size for initially creating the font?

Thanks!
Yes, you can keep the colors of the sprite. Just make sure to use draw_set_color(c_white) before drawing text, or else the colors will be off/gone.

As far as recommended character size? If you're making a more retro-style sprite font, I recommend either 8w x 8h, 8w x 12h, or 8w x 16h. Those are the most common for monospace fonts, at least.
 
Top