LGFX Font Tool JS

GitHub

Read, convert, render and generate embedded bitmap fonts — in the browser.

Decoders and encoders for u8g2 / GFXfont / BDF / VLW / BFF / FONTX2, a text renderer that matches LovyanGFX pixel for pixel, and all 186 fonts built into LovyanGFX v1.2.26. Everything below runs entirely in your browser — no install, and your font files never leave your machine.

Viewer

Browse the 186 built-in LovyanGFX fonts and preview any text exactly as the device will draw it — scaling, datum and grid included.

Open →

Generator

Turn a TTF or a redistributable Google Font into a u8g2 / GFXfont header: pick the exact characters, fill gaps from a fallback typeface, download a .h with attribution included.

Open →

Converter

Drop in a font file or a C header — the format is auto-detected — and convert it to any other format, with constraint violations reported instead of silent truncation.

Open →

Inspector

Inventory any font: metrics, code point ranges, coverage per character set, "can it draw my strings?" checks, and exact size in every output format.

Open →

Also a library

Everything these pages do is a plain-ESM JavaScript library with zero runtime dependencies — npm install lgfx-font-tool, or import it from a CDN. Rendering is verified byte-exact against the real LovyanGFX on 1,860 oracle cases.

npm: lgfx-font-tool →

Source, docs & issues on GitHub →

Guides: beginner / use-case / advanced / specification →