Skip to content

Font Generator

Convert any .ttf font file into a sparse, anti-aliased bitmap font header — a ugui_font_t ready to #include — directly in your browser.


⚠️ Backend unavailable — make sure the font generator service is deployed on this server.
Font File
🔤
Drop .ttf here or click to browse
Max 5 MB · .ttf only
Font Settings
Languages — leave unselected for ASCII
Generation Log
⬇ Download .h File

Output format

The generated header defines a sparse glyph table and a ugui_font_t instance — the same layout the library ships in inc/ugui_types.h, so it compiles unchanged:

#include "../ugui_font.h"

static const uint8_t   my_font_16pt_2bpp_bitmap_data[] = { /* packed glyph bitmaps */ };
static const ugui_glyph_entry_t my_font_16pt_2bpp_glyphs[] = {
    { 0x0021, { 3, 11, 5, 1, 10, 0 } }, // '!'
    /* ... */
};

const ugui_font_t my_font_16pt_2bpp = {
    .bitmap_data = my_font_16pt_2bpp_bitmap_data,
    .glyphs      = my_font_16pt_2bpp_glyphs,
    .num_glyphs  = 94,
    .first_char  = 0x0021,
    .last_char   = 0x007E,
    .bpp         = 2,
    .line_height = 19,
    .ascender    = 16
};

Drop the file into your project and point a widget's font field at the generated symbol. Guarded by UGUI_ENABLE_FONT (ugui_config.h).

See also