FontInfo
Overview
FontInfo is a class in Aspose.Words FOSS for Java.
Inherits from: Cloneable.
Specifies information about a font used in the document.
Edition status of its 23 listed members (a property and its accessor methods are listed separately, overloads once): 23 not yet exercised by a verified example.
This class declares 16 methods for FontInfo objects in Java programs.
Available methods include: getAltName, getCharset, getEmbeddedFont, getEmbeddedFontAsOpenType, getEmbeddingLicensingRights, getFamily, getName, getPanose, getPitch, isTrueType, setAltName, setCharset, and 3 additional methods.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: altName, charset, embeddingLicensingRights, family, name, panose, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
pitch | int | Read/Write | The pitch indicates if the font is fixed pitch, proportionally spaced, or relies on a default setting. |
trueType | boolean | Read/Write | Indicates that this font is a TrueType or OpenType font as opposed to a raster or vector font. |
family | int | 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. |
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: int, style: int) → byte[] | Gets a specific embedded font file. |
getEmbeddedFontAsOpenType(style: int) → byte[] | Gets an embedded font file in OpenType format. |
getPitch() → int | The pitch indicates if the font is fixed pitch, proportionally spaced, or relies on a default setting. |
setPitch(value: int) | Sets the pitch value. |
isTrueType() → boolean | Indicates that this font is a TrueType or OpenType font as opposed to a raster or vector font. |
isTrueType(value: boolean) | Calls isTrueType(value) on this FontInfo instance. |
getFamily() → int | Gets or sets the font family this font belongs to. |
setFamily(value: int) | Sets the family value. |
getCharset() → int | Gets or sets the character set for the font. |
setCharset(value: int) | Sets the charset value. |
getPanose() → byte[] | Returns the panose. |
setPanose(value: byte[]) | Sets the panose value. |
getName() → String | Gets the name of the font. |
getAltName() → String | Gets or sets the alternate name for the font. |
setAltName(value: String) | Sets the alt name value. |
getEmbeddingLicensingRights() → FontEmbeddingLicensingRights | Gets the embedded font licensing rights. |