# PdfNetStack.Fonts namespace

> Types in the PdfNetStack.Fonts namespace of the PdfNetStack package: every class, struct and enum, with a one line summary.

Package: `PdfNetStack`

### Classes

 [FontFormatException](https://www.jadev-corp.com/api/pdfnetstack-fonts/fontformatexception/)

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

 [PdfFont](https://www.jadev-corp.com/api/pdfnetstack-fonts/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](https://www.jadev-corp.com/api/pdfnetstack-fonts/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](https://www.jadev-corp.com/api/pdfnetstack-fonts/pdffontcollection/)

Fonts found by family name, weight, width and style, the way CSS matches them. Add font files
or directories, or use [System](https://www.jadev-corp.com/api/pdfnetstack-fonts/pdffontcollection/#PdfNetStack_Fonts_PdfFontCollection_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](https://www.jadev-corp.com/api/pdfnetstack-fonts/pdffontquery/)

What [Find](https://www.jadev-corp.com/api/pdfnetstack-fonts/pdffontcollection/#PdfNetStack_Fonts_PdfFontCollection_Find_System_String_PdfNetStack_Fonts_PdfFontQuery_) 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](https://www.jadev-corp.com/api/pdfnetstack-fonts/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](https://www.jadev-corp.com/api/pdfnetstack-fonts/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.

### Enums

 [PdfFontStyle](https://www.jadev-corp.com/api/pdfnetstack-fonts/pdffontstyle/)

The slant a [PdfFontQuery](https://www.jadev-corp.com/api/pdfnetstack-fonts/pdffontquery/) asks for, as CSS font-style.

Source: https://www.jadev-corp.com/pdfnetstack/api/pdfnetstack-fonts/
