The Fourteen Fonts All Reading Software Owns
Set text in one of the fourteen fonts reading software already owns, carrying nothing at all inside the file.
See It in a Real PDF
Four fonts all reading software draws on its own, set on a page that carries no font at all — and the example weighs the same lines both ways to say what that saves. Then the fourteen again, in free fonts of the same widths carried inside the file.
Summary
Three families — one with little feet at the ends of the letters, one without, one where every letter is the same width — plus two sets of signs. All reading software has owned them from the start, so the document stays tiny and opens everywhere. It is the perfect choice for a delivery note, a receipt, a label: anything that has to be light and come out fast. A document that must carry its fonts, as an archived document must, carries in their place a free font designed to the same widths.
Technically
Written at the top level of a request, under
"standard_fonts"
standard_fonts declares, under a name the request chooses, one of the fourteen normalised fonts reading software draws whether the file carries them or not: a /Subtype /Type1 font with /WinAnsiEncoding, /FirstChar, /LastChar and /Widths, and no /FontFile at all. Nothing of the font travels with the request and nothing of the font is written into the document: only the widths and the encoding appear there. A name declared here is looked for in none of the three font sources. With free, the free face designed to the same widths is written into the document instead, under its own name: Liberation or TeX Gyre for the twelve text fonts, HQF Symbol and HQF Dingbats for the two sets of signs. A document claiming an archiving standard accepts it.
Request Schema
-
standard_fonts— array, optional, empty by default. -
standard_fonts[].name— string, required. The name items set text in this font by. -
standard_fonts[].face— string, required. Fourteen values:courier,courier_bold,courier_bold_oblique,courier_oblique,helvetica,helvetica_bold,helvetica_bold_oblique,helvetica_oblique,times_roman,times_bold,times_bold_italic,times_italic,symbol,zapf_dingbats. -
standard_fonts[].free— string, optional, absent by default.liberationortex_gyre: the free family whose face is written into the document in place of the standard font.
symbol and zapf_dingbats are reached through an encoding of their own. A font declared here may be a link in a font_chains chain. A typographic variant (font_variants) is built on an embedded font, a client font or one from the font store. A document declaring archive wants a font written into the file: one of the fourteen goes in with free.
A Whole Request That Creates a PDF
{
"standard_fonts": [
{ "name": "sans", "face": "helvetica" },
{ "name": "serif_bold", "face": "times_bold" },
{ "name": "carried", "face": "helvetica", "free": "liberation" }
],
"items": [
{
"type": "text",
"rect": { "llx": 60, "lly": 750, "urx": 535, "ury": 775 },
"content": ["Delivery note 2026-014"],
"font": "serif_bold",
"font_size": 16
},
{
"type": "text",
"rect": { "llx": 60, "lly": 720, "urx": 535, "ury": 738 },
"content": ["Nothing of the lettering travels with this line."],
"font": "sans",
"font_size": 11
},
{
"type": "text",
"rect": { "llx": 60, "lly": 696, "urx": 535, "ury": 714 },
"content": ["This one carries its font, as wide as Helvetica."],
"font": "carried",
"font_size": 11
}
]
}
The fonts
Carrying a Font inside the Document The Older Type 1 Font Programs The Typographic Niceties of a Font A Font Whose Letters You Draw Yourself A Backup Font for the Rarer Signs Fonts Whose Letters Cost One Byte Fonts Whose Signs Come Out in Colour Fonts the Document Names without Carrying A Font Whose Makers Forbid Carrying It Fonts Carried Whole
Where to Go Next
Every JSON key of a request, in one page The other forty-one settings of a request