Class PdfFontFamily
Identifies a font family by name. Standard PDF names are mapped internally.
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public sealed class PdfFontFamily
Constructors
PdfFontFamily(string)
Create a font family resolved from the system font folder.
Declaration
public PdfFontFamily(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
PdfFontFamily(string, string)
Create a font family resolved from directory.
Mirrors the GemBox new PdfFontFamily(directoryPath, familyName) API.
Declaration
public PdfFontFamily(string directory, string familyName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | directory | |
| string | familyName |
Fields
Courier
Courier font family (standard PDF font).
Declaration
public static readonly PdfFontFamily Courier
Field Value
| Type | Description |
|---|---|
| PdfFontFamily |
Helvetica
Helvetica font family (standard PDF font).
Declaration
public static readonly PdfFontFamily Helvetica
Field Value
| Type | Description |
|---|---|
| PdfFontFamily |
Symbol
Symbol font family (standard PDF font).
Declaration
public static readonly PdfFontFamily Symbol
Field Value
| Type | Description |
|---|---|
| PdfFontFamily |
TimesRoman
Times New Roman font family (standard PDF font).
Declaration
public static readonly PdfFontFamily TimesRoman
Field Value
| Type | Description |
|---|---|
| PdfFontFamily |
ZapfDingbats
ZapfDingbats font family (standard PDF font).
Declaration
public static readonly PdfFontFamily ZapfDingbats
Field Value
| Type | Description |
|---|---|
| PdfFontFamily |
Properties
Directory
Optional directory that is searched first when resolving the font file. When null the OS system-font folder is used.
Declaration
public string? Directory { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Gets the family name as supplied by the caller.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |