FontInfo
Overview
FontInfo is a class in Aspose.Words FOSS for .NET.
Specifies information about a font used in the document.
This class provides 2 methods for working with FontInfo objects in .NET programs.
Available methods include: GetEmbeddedFont, GetEmbeddedFontAsOpenType.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: AltName, Charset, EmbeddingLicensingRights, Family, IsTrueType, Name, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Pitch | FontPitch | Read/Write | The pitch indicates if the font is fixed pitch, proportionally spaced, or relies on a default setting. |
IsTrueType | bool | Read/Write | Indicates that this font is a TrueType or OpenType font as opposed to a raster or vector font. |
Family | FontFamily | Read/Write | Gets or sets the font family this font belongs to. |
Charset | int | Read/Write | Gets or sets the character set for the font. |
Panose | byte[] | Read/Write | Gets or sets the PANOSE typeface classification number. |
Name | string | Read | Gets the name of the font. |
AltName | string | Read/Write | Gets or sets the alternate name for the font. |
EmbeddingLicensingRights | FontEmbeddingLicensingRights | Read | Gets the embedded font licensing rights. |
Methods
| Signature | Description |
|---|---|
GetEmbeddedFont(format: EmbeddedFontFormat, style: EmbeddedFontStyle) | Gets a specific embedded font file. |
GetEmbeddedFontAsOpenType(style: EmbeddedFontStyle) | Gets an embedded font file in OpenType format. |