Charset & base metrics

The baseline is the line letters sit on: rows above it hold the letter body, rows below it hold descenders (g, p, y). Glyphs with different sizes stay aligned on it.

Guide & FAQ

What is a bitmap font and the BMFont format?

A bitmap font stores every character as a small image. BMFont, created by AngelCode, is the de facto standard for games: a PNG atlas with all glyphs plus a .fnt file describing position, size, offsets, advance and kerning of every character. Pixafont lets you draw the glyphs pixel by pixel and builds both files for you.

Which game engines can use the exported fonts?

The BMFont text format works with Defold, Godot, LibGDX, Pixi.js, Cocos, LÖVE and MonoGame (via MonoGame.Extended). Phaser loads the XML variant. The JSON export follows the common BMFont JSON schema for web and custom engines. GameMaker and Construct can use the sprite grid export: the TXT file lists the character order, the cell size and Construct's spacing data.

How do I use the font in Defold?

Export the BMFont text format and copy the .fnt and .png files into the same folder of your project. Create a Font resource, set its font property to the .fnt file and its material to builtins/fonts/font-fnt.material for GUI text nodes or builtins/fonts/label-fnt.material for Label components. The size comes from the .fnt file: scale the node or label to resize it.

How do I draw glyphs in Aseprite, Photoshop or GIMP?

Download the PNG or Aseprite template: every glyph has a framed slot with its character written above and small red ticks on the last row above the baseline. Draw inside the frames without resizing the image, then upload the file. In Aseprite, draw on the glyphs layer or add your own layers: only the locked background and template layers and hidden layers are ignored. Colors and transparency are preserved; if a PNG has no transparency at all, its background color is removed automatically.

Can I convert a TTF/OTF font or an existing sprite sheet?

Yes. From font rasterizes any TTF, OTF, WOFF or installed font into the glyph cells with adjustable size, offset and threshold; for pixel fonts use their native size with anti-aliasing off. From sprite sheet slices any image laid out as a grid and fills the glyphs in charset order. From BMFont opens an existing .fnt (text, XML, JSON or binary) with its PNG atlas, including kerning, so you can keep editing it. Every import can be undone.

Monospaced or proportional spacing?

Monospaced gives every glyph the advance of its cell width. Proportional measures the drawn pixels of each glyph, so narrow letters such as “i” take less space. In both modes you can set a fixed advance for any glyph (adv in its custom metrics), add global letter spacing and fine-tune pairs with kerning rules and groups.

Which keyboard shortcuts are available?

B pencil · E eraser · G fill · I color picker · Ctrl+Z undo · Ctrl+Y or Ctrl+Shift+Z redo. In the full editor: ← → previous and next glyph, Shift + arrows move the pixels, + − zoom, 0 fit, Ctrl+C Ctrl+V copy and paste the glyph, Esc close. With a mouse, the right button or Shift erases.

Are my files uploaded anywhere?

No. Pixafont runs entirely in your browser: the project is saved automatically on this device and every template, import and export is processed locally. Save the project as .json to back it up or move it to another device.