Introduction
BMFont, the Bitmap Font
Generator from AngelCode, renders a font into texture images and writes a
.fnt file that says where each character is. It is a different format
from the Windows FNT bitmap font.
Structure
The descriptor comes in text, XML and binary forms. It records general information
about the font, values common to all characters, the page images, one entry for each
character and kerning pairs; in the text form these are the info,
common, page, char and kerning
tags. The binary form starts with BMF and a version byte, currently 3,
followed by blocks, each with a type byte and a four-byte size.
Not described
This page is a first outline. The fields are not yet described here.
Known, not yet covered
- Reference: every field of each tag and binary block and the differences between versions.
- Viewer: the site has no viewer for this format.
Also used for
- Amstrad CPC font – Bitmap fonts of 8×8 characters on the Amstrad CPC.
- Windows bitmap font – Windows bitmap fonts: FNT font resources inside a 16-bit NE executable.
Links
Software
- BMFont – Bitmap Font Generator (Windows)
Reference
- BMFont file format – the maker’s description