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

NameTypeAccessDescription
pitchintRead/WriteThe pitch indicates if the font is fixed pitch, proportionally spaced, or relies on a default setting.
trueTypebooleanRead/WriteIndicates that this font is a TrueType or OpenType font as opposed to a raster or vector font.
familyintRead/WriteGets or sets the font family this font belongs to.
charsetintRead/WriteGets or sets the character set for the font.
panosebyte[]Read/WriteGets or sets the panose.
nameStringReadGets the name of the font.
altNameStringRead/WriteGets or sets the alternate name for the font.
embeddingLicensingRightsFontEmbeddingLicensingRightsReadGets the embedded font licensing rights.

Methods

SignatureDescription
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() → intThe pitch indicates if the font is fixed pitch, proportionally spaced, or relies on a default setting.
setPitch(value: int)Sets the pitch value.
isTrueType() → booleanIndicates 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() → intGets or sets the font family this font belongs to.
setFamily(value: int)Sets the family value.
getCharset() → intGets 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() → StringGets the name of the font.
getAltName() → StringGets or sets the alternate name for the font.
setAltName(value: String)Sets the alt name value.
getEmbeddingLicensingRights() → FontEmbeddingLicensingRightsGets the embedded font licensing rights.

See Also