Skip to content

PdfNetStack.Fonts namespace

View as Markdown

Package: PdfNetStack

FontFormatException

Raised for a font file that is damaged, truncated, or of a kind that is not supported.

PdfFont

A font for drawing text. Font size is given when drawing, so one instance serves every size. Vertical metrics are fractions of the font size: multiply by the size in points to get points.

PdfFontAxis

A design axis of a variable font, such as weight (wght) or width (wdth), with its range in the axis’s own units: weights run from 1 to 1000, widths are percentages of the normal width.

PdfFontCollection

Fonts found by family name, weight, width and style, the way CSS matches them. Add font files or directories, or use System for the fonts installed on the machine. Adding a file reads only its names and style; the font itself loads when first found. Thread safe.

PdfFontQuery

What Find looks for in a family: weight, width and style, matched as CSS does, and for variable fonts the optical size and any other axis values to apply to the instance found.

PdfOpenTypeFont

A TrueType or OpenType font, embedded in the document as a subset of the glyphs actually drawn. Loads .ttf, .otf, collections (.ttc, .otc), WOFF and WOFF2 files. Text is searchable and copyable, and pairs are kerned from the font’s GPOS or kern table.

PdfStandardFont

One of the 14 standard PDF fonts (ISO 32000-1, 9.6.2.2). Viewers supply them, so nothing is embedded and files stay small. They cover Western and Central European Latin text, plus the Symbol and ZapfDingbats sets; for anything else, or for PDF/A, embed a font.

PdfFontStyle

The slant a PdfFontQuery asks for, as CSS font-style.