A pixel font that refuses to blur. Crisp at 16, 32, 48, 72 and 120px. OFL 1.1.
翻译准备中
正在加载完整 README。
查看完整 README ↗A pixel font that refuses to blur. Stem 7 is drawn on the 7 × 7 grid of my mark, and one cell is always the font size divided by eight. At 16, 32, 48, 72 and 120 px every edge lands on a whole pixel, with zero grey pixels.
Website, with every glyph and how it was made: https://davidghatley.github.io/fonts/stem-7/
· × • °, a figure space, my mark at U+E000 (or type dh) and seven project glyphs at U+E001–E007.Download: stem7.zip holds the TTF and WOFF2 files, stem7.css and the licence.
npm, straight from GitHub:
npm install github:davidghatley/stem7
import "stem7/stem7.css";
<h1 class="stem7 stem7--48">Hello</h1>
CDN (jsDelivr):
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/davidghatley/[email protected]/stem7.css">
.pixel {
font-family: "Stem 7";
font-size: 32px; /* 16, 32, 48, 72 or 120 */
line-height: 1; /* the baseline sits 7 cells down */
-webkit-font-smoothing: none;
}
The glyphs are plain text: src/regular.s7 and src/bold.s7 hold nine rows of X and . per glyph, with the reason for each drawing in a comment above it. src/kern-*.txt holds the kerning in whole cells. The mark and project glyphs come from src/house.json.
uv venv && uv pip install fonttools brotli pillow uharfbuzz
.venv/bin/python tools/stemctl.py build # fonts/Stem7-{Regular,Bold,Grid}.{ttf,woff2}
.venv/bin/python tools/stemctl.py lint # glyph and font checks
.venv/bin/python tests/kerncheck.py # every kerning pair, shaped by HarfBuzz
.venv/bin/python tools/stemctl.py crisp # counts grey pixels in headless Chromium
.venv/bin/python tools/export_site.py # glyph data for the website
sh tools/release.sh # dist/stem7.zip
stemctl also derives kerning (kern --write), renders proof sheets (proof), drafts Bold (draft-bold) and draws before/after diffs (diff, compare). Run python tools/stemctl.py -h for the full list.
tests/kerncheck.py now checks every pair.Copyright 2026 David Hatley. Licensed under the SIL Open Font License 1.1. The site's design system files (site/tokens.css, site/components.css) come from my house system, Secret Sauce.