How to create custom bitmap font?

A01f2a00783b6c3cd22c0f00dedb5434
0
dimakoles 101 Oct 27, 2013 at 12:33 fonts

Bitmap font generator http://www.angelcode.com/products/bmfont 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.

2b97deded6213469bcd87b65cce5d014
1
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.

6837d514b487de395be51432d9cdd078
2
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.

B5262118b588a5a420230bfbef4a2cdf
0
Stainless 151 Oct 28, 2013 at 10:06

I use signed distance field fonts similar to this (http://www.youtube.com/watch?v=CGZRHJvJYIg)

The tool I use is based on this http://www.gamedev.net/topic/491938-signed-distance-bitmap-font-tool/

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.