Expand description
Fonts for text that pdfops draws itself (stamps and form field appearances).
Latin-1 text uses the built-in Helvetica, which costs no space. Anything else needs real glyphs, so a font file is subsetted to the characters used and embedded as a composite font with a ToUnicode map. Where no one font has all the characters, several share the text between them.
Structs§
- Style
- The variant of a typeface.
- Text
Font - A font object in a document, able to encode and measure text for it.
Functions§
- helvetica
- helvetica_
width - Width of WinAnsi
bytesset in Helvetica atsizepoints. - literal
- A PDF literal string, escaped.
- winansi
- Encodes text for a WinAnsi font, if every character is Latin-1.