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

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).

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

DR-IT Software documentation

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

Generated by DocFX