Pdf | |
The PdfSystemFonts type exposes the following members.
| Name | Description | |
|---|---|---|
| InstalledFamilies | Returns every font family installed on the host system, sorted alphabetically and de-duplicated case-insensitively. Cached after the first call. |
| Name | Description | |
|---|---|---|
| IsFamilyInstalled | Returns true if a font family with the specified name is installed on the host system. Case-insensitive. | |
| LoadFontBytes | Resolves a system font to its raw font-file bytes (TrueType / OpenType). Throws PdfDocumentException if the family isn't installed or its bytes can't be read. |
Use InstalledFamilies to enumerate every installed family name, and IsFamilyInstalled(String) to test for a specific family. Pass a resolved family name to Add(PdfSystemFont) or CreateFromSystemFont(String, Single) to load and embed it into a document.
The installed-family list is read from the host OS the first time it is accessed and cached for the lifetime of the process. Fonts installed after that point won't appear.