How to make a bitmap font
- Choose a font file (.ttf, .otf, .woff or .woff2), or type the name of a font installed on your computer.
- Set the size in pixels and pick Crisp for pixel fonts or Smooth for regular fonts.
- Tick the character sets you need, and add any extra symbols your game uses.
- Click Generate, check the preview text, then download the ZIP. It contains the PNG page(s) together with the .fnt, .xml and .json descriptions.
Using the font in your engine
Godot 4: copy the .fnt and PNG into your project. Godot imports the .fnt as a FontFile, and you can assign it to a Label's Theme Overrides → Fonts. For pixel fonts, turn off antialiasing in the import settings and use nearest texture filtering.
Phaser 3:
this.load.bitmapFont('ui', 'myfont-16_0.png', 'myfont-16.xml');
this.add.bitmapText(10, 10, 'ui', '안녕하세요!', 16);
LibGDX: new BitmapFont(Gdx.files.internal("myfont-16.fnt")).
Korean (Hangul) bitmap fonts
Hangul has 11,172 possible syllables. That is far more than Latin text needs, which is why many bitmap font tools skip Korean or need manual character lists. This generator includes the standard KS X 1001 set of 2,350 common syllables, which covers almost all everyday text.
At 16 px, the 2,350 set usually fits in a few 512–1024 px pages. Use a larger page size to reduce draw calls, or a smaller one for mobile memory limits.
Tips
- Keep 1–2 px of padding so glyphs don't bleed into each other when the texture is filtered or scaled.
- For outlined or shadowed text, generate the font in white and add the effect in the engine, or bake an outline with the Sprite Outline Generator on the atlas pages.
- Check that your font's license allows embedding it in a game as a bitmap. Fonts under the SIL Open Font License generally do.