XmBDFEditor — MotifCentral

MotifCentral:/xmbdfed

XmBDFEditor

A Motif bitmap-font editor for drawing glyphs, adjusting metrics and working with BDF fonts.

Role: Motif application. XmBDFEditor (xmbdfed) creates and edits bitmap fonts in BDF format. Originally written largely by Mark Leisher, it is now maintained in a Codeberg fork by David Jones (drj). It is useful for the small, precisely drawn characters found in terminals, classic X desktops and console fonts.

Working with bitmap fonts

The font grid shows characters alongside their encoding values. Open a glyph to edit its pixels and metrics; several fonts and glyph editors can remain open at once, with copy and paste between them. Font properties, comments and XLFD names can also be edited.

XmBDFEditor displaying the 7x14 font grid, hexadecimal character codes and metrics for the selected letter A.
The font grid with a fixed-width bitmap font loaded. Captured locally using the locally built Motif library and MWM. View full size.

The glyph editor makes the relationship between a character's bitmap and its spacing visible. This is a useful companion to the X resources guide: choosing a font for an application and designing the characters in that font are different parts of the same interface.

XmBDFEditor glyph editor showing the letter A on an enlarged pixel grid, its encoding and device width, and drawing and transformation controls.
Editing an individual glyph, with its bitmap enlarged for pixel-level work. Captured locally with Motif and MWM. View full size.

Import options include console fonts, Windows FON/FNT and TeX PK/GF fonts; FreeType support adds TrueType import. It can also obtain fonts from an X server and export PSF and HEX files. These conversions support a bitmap-editing workflow rather than an outline-font editor.

Build and try it

With a C compiler, X11 and Motif development files, imake/xmkmf, and the FreeType development files installed, build from the source directory:

xmkmf
make
./xmbdfed example.bdf

Replace example.bdf with a font file, or omit it to start a new font. The upstream README documents optional import features and build-path overrides for a separate Motif installation.

Maintenance and documentation

The fork began in 2026. Its change history includes modern-compiler fixes, repairs to grayscale editing on TrueColor displays, and corrections to glyph editor sizing on systems with different int and long sizes.

Browse all project tiles.

Ready. libXm / Xt / Xlib