Class Font
Namespace: PdfToSvg
Assembly: IronPdf.dll
Syntax
public abstract class Font : Object
Font records the typeface identity of text extracted during a PDF-to-SVG conversion, giving downstream code a reliable way to inspect which font family was active for a given piece of content. As an abstract base, it surfaces through the conversion pipeline rather than through direct construction, and its FontFamily property carries the name that matters most for layout fidelity.
FontFamily is the primary member: it returns the font-family string as it appears in the source PDF, which you can use to decide whether to substitute, embed, or flag a typeface during SVG post-processing. ToString returns a human-readable representation of the font record, convenient for logging or debugging conversion output. GetHashCode provides a consistent hash so Font instances can be stored in dictionaries or hash sets when building font-inventory maps across a document.
Because Font is abstract, you encounter it as a typed reference returned by the conversion layer rather than instantiating it directly. A typical use is collecting distinct FontFamily values across converted pages to audit which typefaces a PDF relies on, then cross-referencing that list against an approved set before publishing the SVG output.
Explore the broader PDF rendering and extraction capabilities at IronPDF documentation and see practical conversion patterns in the PDF to SVG how-to.
Properties
FontFamily
Declaration
public abstract string FontFamily { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |