public class FontInfo
extends java.lang.Object
implements java.lang.Cloneable
You do not create instances of this class directly. Use the DocumentBase.getFontInfos() property to access the collection of fonts defined in a document.
FontInfoCollection,
DocumentBase.getFontInfos()| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAltName()
Gets the alternate name for the font.
|
int |
getCharset()
Gets the character set for the font.
|
byte[] |
getEmbeddedFont(int format,
int style) |
byte[] |
getEmbeddedFontAsOpenType(int style) |
int |
getFamily()
Gets the font family this font belongs to.
|
java.lang.String |
getName()
Gets the name of the font.
|
byte[] |
getPanose()
Gets the PANOSE typeface classification number.
|
int |
getPitch()
The pitch indicates if the font is fixed pitch, proportionally spaced, or relies on a default setting.
|
boolean |
isTrueType()
Indicates that this font is a TrueType or OpenType font as opposed to a raster or vector font.
|
void |
isTrueType(boolean value)
Indicates that this font is a TrueType or OpenType font as opposed to a raster or vector font.
|
protected java.lang.Object |
memberwiseClone() |
void |
setAltName(java.lang.String value)
Sets the alternate name for the font.
|
void |
setCharset(int value)
Sets the character set for the font.
|
void |
setFamily(int value)
Sets the font family this font belongs to.
|
void |
setPanose(byte[] value)
Sets the PANOSE typeface classification number.
|
void |
setPitch(int value)
The pitch indicates if the font is fixed pitch, proportionally spaced, or relies on a default setting.
|
public byte[] getEmbeddedFont(int format,
int style)
public byte[] getEmbeddedFontAsOpenType(int style)
public int getPitch()
int value. The returned value is one of FontPitch constants.public void setPitch(int value)
value - The corresponding int value. The value must be one of FontPitch constants.public boolean isTrueType()
boolean value.public void isTrueType(boolean value)
value - The corresponding boolean value.public int getFamily()
FontFamily constants.public void setFamily(int value)
value - The font family this font belongs to. The value must be one of FontFamily constants.public int getCharset()
public void setCharset(int value)
value - The character set for the font.public byte[] getPanose()
PANOSE is a compact 10-byte description of a fonts critical visual characteristics, such as contrast, weight, and serif style. The digits represent Family Kind, Serif Style, Weight, Proportion, Contrast, Stroke Variation, Arm Style, Letterform, Midline, and X-Height.
Can be null.
public void setPanose(byte[] value)
PANOSE is a compact 10-byte description of a fonts critical visual characteristics, such as contrast, weight, and serif style. The digits represent Family Kind, Serif Style, Weight, Proportion, Contrast, Stroke Variation, Arm Style, Letterform, Midline, and X-Height.
Can be null.
value - The PANOSE typeface classification number.public java.lang.String getName()
Cannot be null. Can be an empty string.
public java.lang.String getAltName()
Cannot be null. Can be an empty string.
public void setAltName(java.lang.String value)
Cannot be null. Can be an empty string.
value - The alternate name for the font.protected java.lang.Object memberwiseClone()