Class FontDefinition
Fully describes how to locate and load a font: its declared FontType and one or more FontFileDefinition entries (most fonts have a single file; Type 1 may supply a .pfb and an optional .afm).
Inherited Members
Namespace: DRIT.Drawing.Font.Sources
Assembly: DRIT.Drawing.dll
Syntax
public sealed class FontDefinition
Constructors
FontDefinition(FontType, FontFileDefinition)
Convenience constructor for single-file fonts (TTF, OTF, CFF, WOFF, WOFF2).
Declaration
public FontDefinition(FontType fontType, FontFileDefinition fileDefinition)
Parameters
| Type | Name | Description |
|---|---|---|
| FontType | fontType | |
| FontFileDefinition | fileDefinition |
FontDefinition(FontType, FontFileDefinition[])
Constructor for fonts that span multiple files (e.g. Type 1: .pfb + .afm).
Declaration
public FontDefinition(FontType fontType, FontFileDefinition[] fileDefinitions)
Parameters
| Type | Name | Description |
|---|---|---|
| FontType | fontType | |
| FontFileDefinition[] | fileDefinitions |
Properties
FileDefinitions
Ordered list of file definitions that together make up the font.
Declaration
public FontFileDefinition[] FileDefinitions { get; }
Property Value
| Type | Description |
|---|---|
| FontFileDefinition[] |
FontType
Declared format of the font.
Declaration
public FontType FontType { get; }
Property Value
| Type | Description |
|---|---|
| FontType |