How to create custom bitmap font?

dimakoles 101 Oct 27, 2013 at 12:33 fonts

Bitmap font generator can creates fonts in black and white only. I’m looking for more advanced tool. Share you experience on it please. Thanks in advance. (Output file format is .fnt)

3 Replies

Please log in or register to post a reply.

Mihail121 102 Oct 27, 2013 at 15:34

Hello dimakoles, libGDX embeds Hiero, a very nice bitmap font generation tool I’ve used on many occasions. It’s easy to run and produces very appealing results.I suggest you give it a try.

TheNut 179 Oct 27, 2013 at 15:48

I used that tool long ago and it was pretty good. Since then I use two bitmap font generators. One I wrote myself, which outputs in a format native to my engine (XML + png). I also wrote a python script to render artsy bitmap fonts in Blender 3D. It works by designing a single glyph and the script will iterate over the character range to render each one.

My fonts are always white with a transparent background. My engine is designed to colour the font as needed at runtime using a blend multiply operation. If the API is restrictive and doesn’t support that, my engine will pregenerate the colour versions of the font at load time. This offers the greatest flexibility and saves me from micromanaging multiple versions of the font.

Stainless 151 Oct 28, 2013 at 10:06

I use signed distance field fonts similar to this (

The tool I use is based on this

As TheNut does, I then colourise the font in the shader, in some cases I texture the font, though that gets a bit more complex.