Class PdfFonts
Provides access to installed system fonts and font-family enumeration.
Wraps the internal SystemFontResolver.
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public static class PdfFonts
Methods
GetFontFaces()
Returns all font faces (family + style + weight combinations) available on the system.
Declaration
public static IReadOnlyList<FontFace> GetFontFaces()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<FontFace> |
GetFontFamilies()
Returns the names of all font families available on the system.
Declaration
public static IReadOnlyList<string> GetFontFamilies()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Events
FontSelection
Occurs when a font face is being selected for rendering, allowing custom font resolution or substitution.
Declaration
public static event EventHandler<FontFaceSelectionEventArgs>? FontSelection
Event Type
| Type | Description |
|---|---|
| EventHandler<FontFaceSelectionEventArgs> |