# Font Monospacer > Turn a proportional TrueType font into a monospaced one for code, tables and terminals. Upload a TTF or WOFF font with TrueType outlines. Every character gets the same width (taken from the digit 0, the average letter, the widest character or your own value); letters are centred in their cell or keep their side-bearing balance, and letters that are too wide are narrowed or may stick out. You get a renamed, verified TTF or WOFF marked as monospaced, read back with Lumina's own font reader. Part of usefulweb.app (https://usefulweb.app/). Part of [Lumina](https://lumina.usefulweb.app/) (ownerApp: lumina). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://luminafontmonospace.usefulweb.app/ (interactive tool at https://luminafontmonospace.usefulweb.app/tool) - JSON API: POST https://luminafontmonospace.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://luminafontmonospace.usefulweb.app/api/v1/tool) - OpenAPI: https://luminafontmonospace.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://luminafontmonospace.usefulweb.app/mcp - tool `lumina_font_monospace` ## Inputs - font (file, required): Font (TTF or WOFF with TrueType outlines; up to 10 MB; uploaded to the server) - width (select): Cell width - customWidth (integer): Custom cell width (thousandths of an em, e.g. 600) - fit (select): Glyphs wider than the cell - align (select): Placement in the cell - margin (number): Space on each side of narrowed glyphs (% of the cell) - doubleWide (boolean): Give very wide glyphs (1.5 cells or more) two cells - familyName (text): New font name (empty = original name + Monospaced) - format (select): Output format - axes (text): Freeze a variable font at (e.g. wght=700; empty = default instance) - sample (text): Sample text for the preview ## Method - Cell width: the advance of the digit 0, the rounded mean advance of A–Z, a–z and 0–9, the widest character from U+0021 to U+007E, or a custom width in thousandths of an em scaled to the font's units per em. - Every glyph with a non-zero advance gets the cell width. Its ink box (from the outline points) is centred in the cell or placed with the original left/right side-bearing ratio. With "narrow them to fit", ink wider than the cell minus the margins is scaled horizontally about its left edge, x′ = left + (x − xMin) · s; affine maps keep quadratic curves exact, then points are rounded to whole font units. - Zero-width glyphs keep zero width. Combining marks drawn left of the origin are moved so that their centre sits over the middle of the previous cell. Composite glyphs are flattened into simple outlines; the instructions are removed. - The font is rebuilt with new glyf, loca, hmtx, maxp, head and hhea tables, OS/2 average width and PANOSE proportion "monospaced", post.isFixedPitch = 1 and a renamed name table (copyright, version, designer and license kept). cmap, GSUB, GDEF and vertical metrics are copied. GPOS, kern, hinting and device-metric tables are dropped. - Read-back with Lumina's font reader: table and file checksums, every advance equals the cell (or zero, or two cells), isFixedPitch, the same character map and every outline point for point. Variable fonts are frozen at one instance first (gvar and HVAR applied). ## Limits - This changes spacing, not design: narrowed glyphs get thinner vertical strokes, and nothing is redrawn by a type designer. Check the font's license before sharing the result: some licenses forbid modified versions or reserve the font name. CFF (PostScript-outline) fonts and WOFF2 are not supported; hinting, kerning and mark positioning are removed.