Written for the site and checked against the designers' test vector (a65d985179783265 7860fedf5c570d18) with rustc -D warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Monostain
Monostain is a free, programmatic monospace font from the Stain family, inspired by JetBrains Mono.
Try it, see every glyph and download it at monostain.pages.dev.
Every glyph is written in code as centerlines, which skia-pathops strokes at the weight's width and merges into one outline. Arches and bowls (n h m b d p q) are filled bands instead, so they thin where they meet the stem. Bold is the same drawing with a thicker stroke, and the italics lean 10°.
- Regular, Bold, Italic and Bold Italic, every glyph 600 units wide
- 383 characters: ASCII, Latin-1, Latin Extended-A, curly quotes, dashes, currency, math, arrows, box drawing and blocks
0has a dot, and1 l I |all look different
Usage
To use Monostain in your project without downloading, import it via CDN:
@font-face {
font-family: "Monostain";
src: url("https://cdn.jsdelivr.net/gh/PlanetRenox/MonostainFont@1.0/dist/Monostain-Regular.woff2") format("woff2");
font-weight: 400;
}
@font-face {
font-family: "Monostain";
src: url("https://cdn.jsdelivr.net/gh/PlanetRenox/MonostainFont@1.0/dist/Monostain-Bold.woff2") format("woff2");
font-weight: 700;
}
@font-face {
font-family: "Monostain";
src: url("https://cdn.jsdelivr.net/gh/PlanetRenox/MonostainFont@1.0/dist/Monostain-Italic.woff2") format("woff2");
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: "Monostain";
src: url("https://cdn.jsdelivr.net/gh/PlanetRenox/MonostainFont@1.0/dist/Monostain-BoldItalic.woff2") format("woff2");
font-weight: 700;
font-style: italic;
}
code, pre {
font-family: "Monostain", monospace;
}
For editors and terminals, download Monostain.zip from the latest release and install the .otf or .ttf files.
Build
Needs uv.
uv run build.py # writes dist/, the same bytes every time
uv run check.py # flags glyphs whose outlines came out with seams or slivers
The glyphs live in src/: core.py is the drawing kit, then lower.py, upper.py, figures.py, symbols.py and marks.py (accents, the accented letters built from Unicode's decompositions, and ligatures).
License
CC0 1.0 Universal. Use it however you want, no attribution needed.
