142. A text display good enough that people use it instead of a GUI
Minted 2026-08-20 by calef, on seeing the Kaypro-style font land: "I would like to explore a really awesome text display and not a grainy one like we get with Kaypro II... the idea would be to deliver a text display so good that people would use it outside of a GUI."
At minting the terminal was 18 columns by 8 rows of a hand-drawn 7x8 bitmap on a 128x64 screen. The ask is a display somebody would choose over a window manager. That is four independent axes: the surface, the terminal, the type and the color. The font is the one everybody names and the smallest one. This block sequences them, prices the type, and reports one finding that makes the expensive axis cheap: the rasteriser belongs at build time.
Where it stands
Both decisions are taken. §104 (the rich-text font is DejaVu Sans Mono, and the palette is Solarized) chose the family and the palette on 2026-08-20, though this block's gate did not say so until 2026-09-19. §166 (the rasteriser dependency, and whether the glyph atlas ships one face or four) took the crate, which §46 (thin primitives or whole subsystems) makes a decision, and the face count. Milestone 435 (a decision nobody wrote down)'s lane wrote it up, and calef ruled on 2026-10-05 (UTC).
Increments one and two are built (milestone/142-terminal-size). They are also journey
1's step 6 (calef, 2026-08-27: "I want a full size usable
terminal"), and need nothing from milestone 177 (wire the graphical terminal stack into the real
interactive boot). The scanout is 1120x624, sized to the atlas's 14x26 cell for an 80x24 grid.
All six increments are built. The terminal is DejaVu Sans Mono from a checked-in atlas, blended in
linear light, on an 80x24 scanout, in four faces with five underline styles and truecolor. The
navigation cluster is in the keymap: home, end, insert, delete, page up and down, with xterm's shift
forms. Scrollback from the keyboard needs a new opcode, because line_editor sits in front of
display_terminal; milestone 668 (scrollback from the keyboard)
holds it. Sequencing has each increment's state.
The working behind each section below is in its appendices, each linked where it applies. This page is complete without them.
Where this sits, and it is not a rung
The display ladder climbs toward compositing and acceleration: rung three
is real applications on iced's software renderer with cosmic-text, rung four is a GPU. This
milestone points the other way: calef's ask is a system good enough that you would not open a GUI.
That is the more interesting claim for a microkernel, because a terminal is a component the whole
confinement story already covers, and a desktop is not.
So this is a sibling of rung three that rung three then consumes, not a step on the ladder. Rung
three would buy good type expensively, as a side effect of a UI toolkit: cosmic-text does shaping,
bidirectional text, fallback and proportional layout, and a monospace terminal needs none of those.
What "would use it outside a GUI" actually requires
calef named color, type and rich text. The axis he did not name decides whether anybody would live in it, and it needs no rasteriser: 80 columns by 24 rows as an absolute floor, scrollback, UTF-8, and arrow keys. At minting the terminal had none of them (notes/glyphs.md recorded each as an honest limit), and that was more than half the work. So the block's main recommendation is to make it a terminal first, then make it beautiful. A gorgeous 18x8 window is a demo; a plain wide window with scrollback is a place you can work.
The scanout
128x64 was chosen as a test instrument. gfx_proto::WIDTH records that a square surface hides a
stride bug, a transposition and an x/y swap. That argument constrains the ratio, not the size, so it
survives growth. §102 (a Frame names a run of pages) made a big surface reachable: a PageFrame naming a run turns hundreds of
capabilities and MAP calls into one of each. The real price is the harness, whose referee compares
every pixel of a screendump every 100 ms (see Follow-on). The arithmetic and the build detail are
in scanout.md.
The type
Menlo is Apple's and cannot ship here. Its own name table shows it is Bitstream Vera by way of
DejaVu, with a 2009 Apple layer on top. So DejaVu Sans Mono is not a lookalike; it is Menlo's
immediate ancestor, the last point in the chain where the outlines were given away. §104 chose it
over JetBrains Mono, which has the cleanest license (OFL 1.1, no reserved name).
Menlo Regular 11 at 2x density is a 14x26 cell with a 16-pixel cap height. At 1x the cap is eight
pixels, where unhinted rendering goes soft. Build the atlas at the 2x cell. The candidates' licenses
and the metrics are in
type.md.
The palette
"Solarized Dark Higher Contrast" is not Ethan Schoonover's and not an iTerm2 built-in; it is a 2011
gist, and a different palette: canonical Solarized spends half its ANSI table on a gray ramp, and
the variant puts hues there. Both pass milestone 141 (a palette worth looking at)'s three properties after a one-unit nudge to a
single channel. §104 chose canonical Solarized Dark. The working is in palette.md.
Rich text
At minting a cell was two bytes. A display somebody would live in needs 24-bit color, a char,
real bold and italic, underline styles and more: roughly 16 bytes a cell. Real bold reverses the
recorded "bold is bright", whose reason (an 8x8 bold face is a smudge) expires at an anti-aliased
cell. So "rich" means four faces, and §166 ruled four, with italic as DejaVu's Oblique. Increment
five's built half and its limits are in
rich-text.md.
How the verification survives, which it must
Three parties compute today's picture without talking to each other: the terminal draws it, the
kernel predicts the framebuffer pixel for pixel through the direct map, and the host grades QEMU's
screendump. The host checker's negative control is a screen with one letter changed, an o for a
zero. That structure is why text on this screen is proved rather than plausible.
The atlas keeps it exactly, which is the strongest argument for the atlas. A coverage table is a
static and a lookup, as pure as bitfont::glyph, so all three parties keep running the same
function. A runtime rasteriser would put a font engine into the test kernel image.
Determinism was measured twice, by two investigations that did not see each other's work.
ab_glyph_rasterizer is bit-identical across aarch64 and x86_64. fontdue at default features is
not: its x86-only SIMD path reorders float additions, and about one pixel in 150,000 differs by
1/255. In a tree whose checker fails on a single pixel, that decides the crate. Three instructions
follow, and increment three takes them as decided:
- Use
skrifa(§166, 2026-10-20) plusab_glyph_rasterizer, pinned at 0.1.10 (0.1.4 through 0.1.8 panic). - Quantize coverage to
u8at the boundary and never persist rawf32. A patch bump (0.1.5) changed raw output, and theu8cast is what absorbs it. - Use grayscale anti-aliasing, not subpixel, because subpixel output depends on a panel QEMU cannot describe.
Blending belongs in linear light, which matters most for light text on a dark ground. Anti-aliasing
also makes milestone 141's properties decorative for this terminal, since every edge pixel is a
legal blend; the pixel-exact comparison carries the load. The numbers, the mechanism and the traps
are in determinism.md.
The dependency, which is §46's question and has a clean answer
The atlas splits the work. The generator is not on the verification path; the table it produces is,
checked by regenerating it. An outline parser is a whole subsystem this tree would never write, so
take one: skrifa, with read-fonts, font-types and bytemuck beneath it. ab_glyph_rasterizer
has zero dependencies and is a thin primitive, so take it too. A build-time tool is still inside the
supply-chain gate. The rasteriser is
Apache-2.0 only, where the tree is mostly dual MIT or Apache-2.0, and the build-time atlas keeps it
out of the shipped graph. §166 ruled this pair. The test, the table and the prior art are in
dependency.md.
Sequencing
Six increments. The first two needed no decision from calef and no dependency at all, and they were the larger half of "would use it outside a GUI".
- Grow the surface. BUILT. §102 built and the scanout grown; increment three sized it to 1120x624. The harness cost was paid, not dodged.
- Make the grid a terminal. BUILT. Scrollback, UTF-8 in the VT engine, and the arrow keys.
- The atlas and the host-side generator. BUILT.
tools/glyph_atlas_generatorturnsvendor/dejavu's four faces intocrates/glyph_atlas's coverage tables (14x26, 96 glyphs, one byte a pixel), and its test, run bycargo xtask test, fails unless regenerating reproduces them byte for byte. The terminal draws from the regular face, and the scanout is 1120x624, exactly 80x24 cells. - Blending, in linear light, with the sRGB tables. BUILT.
glyph_atlas::blendtakes each channel throughSRGB_TO_LINEAR, a 256-entryu16table the generator writes and its gate checks, and back by the nearest code in that same table. Integer only at runtime. - Rich attributes. BUILT. Truecolor and the 256-color table. Bold, italic and bold italic draw
their own faces, so bold no longer brightens. Underline comes in five styles (
4:0to4:5,21) with its own color (SGR 58 and 59), and every extended color has its colon form too. A cell is twenty bytes, the handoff blob is layout 2 (a layout-1 reader is kept), andMAX_CELLSandSCROLLBACK_CELLSare sized so both stay inside the pages they had. - The palette. Built: milestone 141's gate exists and the Solarized Dark table passes it.
A seventh, listed and not recommended: a glyph service, a component serving rendered glyphs so a program that draws text needs no filesystem authority and no rasteriser. It is the capability-shaped answer, but it buys nothing this milestone needs (the atlas is smaller, faster and verifiable) and everything rung three needs (arbitrary sizes, proportional faces, fallback). Propose it as its own milestone when rung three is live.
What is an architect's
Nothing is left to build. The family was §104's (2026-08-20) and the face count §166's (2026-10-05). Still calef's, and blocking nothing:
- Names.
glyph_atlas,glyph_atlas_generatorand any glyph service are all provisional. - Whether the terminal ever gains a configurable palette. Milestone 141 flags that as larger than it
sounds, because the palette is a
constthree parties agree on. - Whether a nudged palette is still called Solarized (141's block).
BUGS
-
No rasteriser runs on either target, by design: the generator runs on the host, and the regenerate gate checks its output on every host that runs
cargo xtask test. The soft-float claim is read from two target JSONs and from whatcompiler_builtinsprovides, never exercised. -
The atlas assumes the repertoire stays small. Full Unicode coverage is not a bigger table; it is a different design, back to a runtime rasteriser or a glyph service. The block says "a terminal does not need that", and a person running
caton a file of Devanagari would disagree. -
Every determinism number here is measured behavior, not a documented guarantee. Both investigations searched both projects' READMEs, docs and changelogs for any statement of output stability and found none.
ab_glyph_rasterizer0.1.5 already changed raw output in a patch bump. The regenerate-and-compare gate turns the assumption into a check, which is why increment three includes it. -
Neither project's CI tests more than one platform; both are
ubuntu-latestonly, soab_glyph's cross-architecture exactness is a property of its code that nothing upstream defends. ab-glyph issue 121 is open and uncommented: accumulated float error leaves tiny nonzero coverage outside the glyph, visible as shadows when text is drawn repeatedly. The reporter asks for better rounding, and if that is fixed, output changes. -
The x86 AVX2 path was verified statically, not run. Rosetta does not expose AVX2, so the absence of fused multiply-add was read out of generated assembly. Rosetta is also one machine, not native silicon. Neither limit touches the two bare-metal targets: the minimal crate set built clean for
aarch64-unknown-none-softfloatandriscv64imac-unknown-none-elfon 2026-08-20, though the determinism runs were on the x86_64 and aarch64 hosts, not on either target (see above). -
script/supply-chainreads the cargo graph, so the atlas (140 KB of tables drawn from fonts under Bitstream Vera's license) is invisible to it.vendor/README.mdregisters the fonts and the tables, by hand. Nothing checks the vendored fonts against upstream's release archive; that entry's BUGS says why. -
"Rich text" is read here as terminal attributes, not as a document model. If calef meant proportional type, embedded images, or anything a terminal is not, the right answer is rung three.
-
The text of
design/decisions/0166-the-rasteriser-and-how-many-faces.mdnamesskrifa0.44.0 andread-fonts0.41.0. The pin intools/glyph_atlas_generator/Cargo.tomldecides the versions in force, and the dependency bump in #2959 moves it past them. The ruling stands and its text is stale on the versions. The architect orscript/record-rulingrefreshes it; a lane does not editdesign/decisions/.
Follow-on
- Decision. The font family was chosen on 2026-08-20:
design/decisions/0104-the-font-and-the-palette.mdpicks DejaVu Sans Mono, Menlo's own ancestor. - Decision. The palette was chosen in the same call, canonical Solarized Dark, in
design/decisions/0104-the-font-and-the-palette.md, after this block's finding that "Higher Contrast" is a different palette rather than a contrast adjustment. - Done. §102 is built and consumed: the page-frame object in
kernel/src/cap.rscarries a count that is the run's length in pages, andcrates/graphics_contractsizes the scanout at 1120x624 over 683 frames. - Done. The screendump cost was measured and settled: the referee poll in
xtask/src/main.rsrecords the growth, that the suites still finish in normal time, and calef's call to leave the 100 ms cadence alone until something is measurably slow. - Milestone 668. Scrollback is still not reachable from a keyboard, and it needs an architect:
the route has a new opcode in it.
design/roadmap/0668-scrollback-from-the-keyboard.mdhas the work, the four options and the recommendation. The keys (CSI 5;2~,CSI 6;2~) are sent since 2026-09-26. - Done. Increment three:
crates/glyph_atlas,tools/glyph_atlas_generatorand itstests/regenerate.rsgate, andvendor/dejavu. - Done. Increment five: the faces, the underline styles and color, and the colon forms, in
crates/video_terminal(Vt::sgr,Vt::pixel, handoff layout 2). - Done. Whether the atlas ships one face or four: four, with italic as DejaVu's Oblique (calef, 2026-10-05 UTC, per §166). §104 chose the family and said nothing about faces.
- Done. The palette increment: milestone 141 is BUILT 2026-09-29, and the one-unit nudge §104
flagged is in
crates/video_terminal/src/lib.rs(entry 14,0x93a1a0). Whether a nudged palette is still called Solarized is calef's (141's block). - Done. The chosen face is measured at the vendored 2.37 by the generator's own parser: 2048 units per em, every advance 1233, ascender 1901, descender -483. Those are Menlo's numbers exactly, so the 14x26 cell stands.
- Done. The scanout is 1120x624 (683 page frames), 80x24 at 14x26. A firmware screen's terminal draws the 14-pixel cell at half the boot console's scale, so it keeps the boot console's column count: 137x41 on a 1920x1080 screen.
- Recorded. The atlas stays invisible to
script/supply-chain, which reads the cargo graph;vendor/README.mdregisters it by hand.
Index row
Minted by calef on 2026-08-20, on seeing the Kaypro-style font land: he wants Solarized Dark
Higher Contrast and Menlo Regular 11, and the sentence that is the milestone is "a text display
so good that people would use it outside of a GUI." Four axes, and the font is the smallest: the
surface, the terminal, the type and the color. The finding that makes the expensive axis cheap is
that a monospace grid puts every glyph on an integer cell boundary. So the rasteriser belongs at
build time and the runtime keeps a coverage table exactly as bitfont keeps a bit table, which is
what preserves the three-party pixel-exact proof. All six increments are built. The terminal is
DejaVu Sans Mono from a checked-in atlas on an 80x24 scanout, blended in linear light. It draws four
faces, underline styles and truecolor, on milestone 141 (a palette worth looking at)'s palette.
Scrollback from the keyboard is milestone 668's, because its route needs a new opcode.