GetAssetPack

Bitmap font generator.

Turn a TTF or OTF font into a bitmap font for your game, or open a bitmap font you have and change it.

  • Pick the characters, the size, a fill or gradient, an outline and a shadow; the glyphs are packed onto PNG pages
  • Save BMFont (.fnt text, XML, binary or JSON with PNG), a Godot font (.tres) or a Unity custom font
  • Open .fnt with its PNGs, a Godot .tres or a Unity .fontsettings to edit and convert it; drop images to add glyphs

Runs locally in your browser

How to use the bitmap font generator

  1. Drop a TTF, OTF, WOFF or WOFF2 font, or use Open. To change a bitmap font you already have, drop its .fnt together with its PNG pages, a Godot .tres font, or a Unity .fontsettings with its PNG.
  2. Pick the characters (ASCII, Latin, Cyrillic, every one in the font, or your own text), the size, and Sharp edges for a pixel font at its own size.
  3. Add a gradient, an outline or a drop shadow if you want them baked in, and set the line height, padding, the gap between glyphs and the page size.
  4. Click a glyph on the page to nudge it, change its advance or leave it out; drop PNG images named after a character (A.png, U+2665.png) to add icons and symbols.
  5. Choose the format and save: a ZIP with the .fnt and its PNG pages for BMFont readers, one .tres for Godot 4, or a folder for Unity's Assets.

Questions

How do I convert a TTF to a bitmap font (.fnt)?

Drop the TTF here, pick the characters and the size, and save as BMFont text. You get the .fnt and the PNG pages it names in a ZIP, as AngelCode's BMFont writes them, with kerning pairs from the font.

How do I use it in Godot?

Save as Godot 4 font and put the .tres in your project: it is a FontFile with the pages inside, ready for a Label's font. Godot 4 also imports a BMFont .fnt in text or binary form with its PNGs, but not the XML form.

How do I use it in Unity?

Save as Unity custom font and drop the folder into Assets: the .fontsettings, its material and the PNG find each other through their .meta files. Pick the font in a legacy Text or TextMesh; set the font size there to 0 so it draws at its own size. Unity's custom fonts have one texture, so everything must fit on one page.

Which engines read BMFont?

Phaser, PixiJS, libGDX, Cocos, MonoGame, LÖVE, Defold, HaxeFlixel and many more read the .fnt formats; most want text or XML, some binary.

Are my files uploaded anywhere?

No. The font is drawn and packed in your browser, and nothing is sent to a server.

Related tools

Looking for a font for your game? Browse fonts in the catalog.