Fonts Carried Whole
Carry a light font whole, every letter it holds, rather than only the letters the pages show.
Summary
A font goes into a document cut down to the letters its pages show, which keeps the file light. Name a weight, and a font file no heavier than it goes in whole instead: whoever later types into a form field of the document, or edits it, finds every letter the font has.
Technically
Written at the top level of a request, under
"whole_font_ceiling"
whole_font_ceiling is a weight in bytes, compared with the font file as the request sends it. A file no heavier is embedded with every glyph of its program; a heavier one is cut down to the glyphs the pages draw, as every font is when the key is absent. Only a face read from a file is reached: a standard face, a font the request draws itself and a Type 1 program are left as they are.
Request Schema
-
whole_font_ceiling— integer, optional, absent by default. A weight in bytes.
Scope: every font of the request read from a file.
A Whole Request That Creates a PDF
One name below stands for a font file: put the encoded file in its place, or send the file itself beside the description, as a supplied part of the same call. One page carries a real font already encoded, and its request posts as it stands.
{
"fonts": [{ "name": "body", "data": "PASTE_THE_FONT_FILE_BASE64_HERE" }],
"whole_font_ceiling": 65536,
"items": [
{
"type": "text",
"rect": { "llx": 72, "lly": 700, "urx": 523, "ury": 740 },
"content": ["Every letter of a light font goes in"],
"font": "body",
"font_size": 16
}
]
}
The fonts
Carrying a Font inside the Document The Older Type 1 Font Programs The Fourteen Fonts All Reading Software Owns 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
Where to Go Next
Every JSON key of a request, in one page The other forty-one settings of a request