• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class PdfFonts

Provides access to installed system fonts and font-family enumeration. Wraps the internal SystemFontResolver.

Inheritance
object
PdfFonts
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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>
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX