Every Free Font, One Page Each

A file that must carry every font it uses — an invoice kept for ten years, a file sent to a printer — cannot lean on the fourteen fonts all reading software holds. The library carries in their place free fonts drawn to the same widths, so a line keeps its length and your layout does not move.

This document shows all twenty-six, one page each, the way a type foundry shows its fonts: the name, the built-in font whose widths it takes and its licence; one line at eight sizes, from 8 to 48 points; the same line in the built-in font and then in the free one, with the width each measures; and every character the font shows.

The last page sets two stamps and two notes in built-in fonts. For each, the file carries the free font of the same widths, so every reading software shows the same letters.

What This Example Shows

  • Twelve Liberation fonts and twelve TeX Gyre fonts, for Helvetica, Times and Courier in four styles each.
  • HQF Symbol and HQF Dingbats, for Symbol and ZapfDingbats.
  • Each line measured twice: the free font comes within a tenth of a point of the built-in one.

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.

Read the Rust source Read the Python 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

Every Free Font, One Page Each, first page

The Same Document in Other Languages

This document weighs 974.9 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