A Page That Carries No Font

A font is somebody's property before it is a file, and putting one inside a document you hand to a customer is a question your lawyer will want to answer. It costs weight too, on every single document you create. There has been a way round both since the beginning of the format: fourteen fonts all reading software has to draw on its own, whether the file brings them or not, and a document that asks for one of them writes a few lines naming it and nothing else.

The saving is not claimed here, it is measured: the same four lines are laid out twice, once this way and once with a font carried inside, and both figures are printed on the page you get. What it costs is printed there too. A file that claims an archiving or accessibility standard may not do this — those standards want every font carried, and the library refuses to write such a file — and each of these fonts carries a limited set of characters, so a writing system outside it needs a font the file really brings.

For such a file, the library holds free fonts designed to the same widths as the fourteen. The third page sets the fourteen lines in them, carried inside the file under their own names, and each line comes out exactly as wide as on the second.

A trial copy, which is what the free monthly plan of this site runs on, traces every letter from the glyph the document's own font gives, and these fonts stay outside the file, so they give it nothing to trace. Set a page in one of them and a trial copy asks, in a plain sentence, for whichever of the two you would rather give it: a font carried inside the document, or a licence key.

What This Example Shows

  • Four fonts all reading software draws on its own: Helvetica, Times, Courier and Symbol.
  • No font in the file, and both weights measured by the program.
  • What it costs: 256 characters each, a carried font for a file that claims an archiving or accessibility standard, and a licence key, which a trial copy asks for.
  • The fourteen again in free fonts of the same widths, carried inside the file.

The Source Code, Complete

Nothing is left out and nothing is simplified: this is the program exactly as it runs, for the developer who uses this library. The third is the description itself: a plain list of what the page has to say, which is what the service is sent.

Read the Rust source Read the Python source Read the JSON source

The Document Itself

Open the document in English Open the document in French Open the document in German Open the document in Spanish Open the document in Italian Open the document in Portuguese

A Page That Carries No Font, first page

The Same Document in Other Languages

This document weighs 147.2 kB

Examples Near This One

A Minimal PDF

Two identical pages that draw the structure of an invoice with lines and rectangles, without a word of text: the file is about a dozen kilobytes and embeds no font.

Showing Page One Before the File Has Arrived

The same document written twice: once as it is, once with its first page placed at the start of the file. The page gives, for each of the two, the number of bytes a browser must have received before it shows page 1.

Every Paper Size, on Its Own Page

One page for each paper size the library names, from A0 down to A6 and the American sizes, each giving its size in millimetres and inches; then pages laid on their side or upside down, and a banner ten metres long.

A Document That Reads Freely and Asks Not to Be Copied

A page that opens without a password and prints like any other, but asks the reading software to forbid copying and pasting its text. The text is encrypted in the file: a program reading it byte by byte finds no sentence in it.

Every example, by subject