Advertisement

How do you create your own pixilated font?

Started by September 24, 2024 03:43 PM
2 comments, last by Alberth 2 months, 3 weeks ago

So, I started developing a pixel game, and I wasn't able to find any fitting font, so I decided to create my own, but just couldn't find how to. Is there any way to do so using a spritesheet or something?

Elvelate said:
Is there any way to do so using a spritesheet or something?

Yeah, this tool is an example. It creates bitmaps from fonts installed to the system, plus a textfile specifying the offsets between letters. Pretty easy to use: https://www.angelcode.com/products/bmfont/

Advertisement

It depends on the quality and variations that you want to have in the game.

A spritesheet is simple. You know the width of each letter/digit/symbol and you put them after each other. It works, but having many different sizes, or a lot of characters (translation of all text to foreign languages) dramatically increases the amount of work you need to do.

If you also want kerning (an 'A' followed by a `W` gets less space between them so it looks better), or contractions (eg ‘f’ followed by ‘i’ becomes a single "letter" ‘fi’, because a sequence "f i" doesn't look good), you have so much complexity that you are better of using a library for it, eg freetype.

This topic is closed to new replies.

Advertisement