{"uid":"cap_c3dlQDHod6dt0L8sHe-ML","slug":"rengi-forge-bitmap-font-generator-38939f2c","name":"Rengi Forge: Bitmap Font Generator","description":"Font tools: Bitmap font from a TTF/OTF: atlas PNG, BMFont .fnt with kerning, JSON and a preview of a sample line. Pixel mode snaps glyphs to whole pixels with no antialiasing. Full schema: https://rengi.dev/v1/font-tools/schema","url":"https://rengi.dev/v1/font-tools/bitmap?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"font":{"type":"string","description":"TTF or OTF file as base64."},"mode":{"enum":["pixel","smooth"],"type":"string","default":"pixel","description":"pixel: crisp, no antialiasing, for pixel art games; smooth: antialiased."},"size":{"type":"integer","default":16,"maximum":256,"minimum":6,"description":"Pixel size (em)."},"chars":{"type":"string","maxLength":4000,"description":"charset=custom: exactly these characters."},"color":{"type":"string","default":"#ffffff","pattern":"^#?[0-9a-fA-F]{6}$","description":"Glyph colour baked into the atlas (white lets the engine tint it)."},"sample":{"type":"string","default":"The quick brown fox 0123 Привіт, як справи?","maxLength":200},"charset":{"enum":["ascii","latin1","cyrillic","custom"],"type":"string","default":"cyrillic"},"fontUrl":{"type":"string","format":"uri"},"outline":{"type":"integer","default":0,"maximum":8,"minimum":0},"padding":{"type":"integer","default":1,"maximum":8,"minimum":0},"outlineColor":{"type":"string","default":"#000000","pattern":"^#?[0-9a-fA-F]{6}$"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_45Ozw3CHTWS4mUhBV_1JJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a TTF/OTF font file into a bitmap font atlas (PNG), BMFont .fnt file with kerning, JSON metrics, and a sample line preview","exampleAgentPrompt":"Take my TTF font (I'll give it as base64) and generate a bitmap font atlas in pixel mode at 16px for the Cyrillic character set, with white glyphs and a 1px black outline — I need the PNG atlas, the BMFont .fnt file with kerning, and a JSON of the metrics.","exampleUseCases":[{"title":"Pixel art retro game font","prompt":"I have a TTF pixel font I want to use in my retro game — convert it to a bitmap atlas in pixel mode at 16px covering ASCII characters, white glyphs, no antialiasing, with 1px padding between glyphs. Give me the PNG atlas and the BMFont .fnt file."},{"title":"Cyrillic RPG dialogue font","prompt":"Convert this OTF font (base64 attached) to a smooth antialiased bitmap font at 32px covering the Cyrillic character set, white color so the engine can tint it, and include a preview line using 'Привіт, як справи?'. I need the atlas PNG, .fnt, and JSON."},{"title":"Outlined UI font for Godot","prompt":"Generate a bitmap font atlas from this TTF at 24px smooth mode for Latin-1 characters, with a 2px black outline and white glyph fill — output the BMFont .fnt with kerning and the PNG atlas so I can drop it straight into Godot."}],"resultDescription":"Returns an atlas PNG containing all rasterized glyphs, a BMFont-format .fnt file with per-glyph metrics and kerning pairs, a JSON file with the font metrics, and a rendered preview image of the sample text line. In pixel mode, glyphs are snapped to whole pixels with no antialiasing for crisp retro rendering.","failureModes":["Invalid or corrupt base64 font data — returns error indicating unparseable font","Font URL unreachable or non-font file — returns fetch or parse error","Requested size out of range (below 6 or above 256) — validation error","charset=custom with no chars field provided — missing required field error","Color value not matching 6-digit hex pattern — validation error","Font missing glyphs for requested character set — partial atlas or error"],"whenToPreferThis":"Choose this endpoint when you need a ready-to-import bitmap font for a game engine (Unity, Godot, LibGDX) in BMFont format, especially when targeting pixel art aesthetics with crisp no-antialiasing rendering. It is ideal when you need kerning data, multi-charset support including Cyrillic, configurable outlines, and all standard BMFont artifacts in one call. Prefer over manual font tooling or generic image generation when you need the full BMFont pipeline including .fnt, atlas PNG, and JSON metrics together.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:40:54.191Z","isFirstParty":false,"canonicalSlug":"rengi-forge-bitmap-font-generator-38939f2c"}