Class FontType
Types of font as supported and used inside a PDF document.
Inheritance
Namespace: IronPdf.Fonts
Assembly: IronPdf.dll
Syntax
public sealed class FontType : Enum
Fields
CIDFontType0
A descendant font (or CIDFont of a Type0 font that uses Type1 font to defines the glyphs.
Declaration
public const FontType CIDFontType0
Field Value
Type | Description |
---|---|
FontType |
CIDFontType2
A descendant font (or CIDFont) of a Type0 font that uses TrueType font to defines the glyphs.
Declaration
public const FontType CIDFontType2
Field Value
Type | Description |
---|---|
FontType |
MMType
Multi-master font format is an extension of Type1 font format.
Declaration
public const FontType MMType
Field Value
Type | Description |
---|---|
FontType |
Remarks
It allows the generation of a wide variety of typeface styles from a single font program accomplishing through the presense of various design dimensions in the font.
PDF document that has this type of font referenced inside the document still continue to work normally, but just that we don't have public API to interact or manipulate this specific type of font for now. It might be supported in the future.
TrueType
TrueType font contains the same entries information as of Type1 font with some subtle differences. It has been adopted as a standard font format for the Microsoft Windows operating system.
Declaration
public const FontType TrueType
Field Value
Type | Description |
---|---|
FontType |
Type0
Type0 font represents a composite font. A composite font consists of a descendant font (CIDFont). Glyphs come from mentioned descendant font.
Declaration
public const FontType Type0
Field Value
Type | Description |
---|---|
FontType |
Type1
Type1 font is one of the simple fonts that defines glyph shapes using Type1 font technology.
Declaration
public const FontType Type1
Field Value
Type | Description |
---|---|
FontType |
Remarks
It uses a compact encoding for the glyph description, and it includes hint information that enables high-quality rendering even at small sizes and low resolutions.
Type3
Type3 font defines the font by streams of PDF graphics operators.
Declaration
public const FontType Type3
Field Value
Type | Description |
---|---|
FontType |
Remarks
One key difference is that this is the only type the defines the font, while other types contain the font information to let the PDF reader tool pick up the information for further rendering.
PDF document that has this type of font referenced inside the document still continue to work normally, but just that we don't have public API to interact or manipulate this specific type of font for now. It might be supported in the future.
Unknown
Unknown font type.
Declaration
public const FontType Unknown
Field Value
Type | Description |
---|---|
FontType |
Remarks
Mostly this should not happen. If it happens, it can be due to corrupted PDF document, or from a bleeding-edge feature of the newest PDF document standard.
value__
Declaration
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |