java.lang.Objectcom.aspose.words.FontInfo
public class FontInfo
You do not create instances of this class directly.
Use the
Property Getters/Setters Summary | ||
---|---|---|
java.lang.String | getAltName() | |
void | setAltName(java.lang.String value) | |
Gets or sets the alternate name for the font. | ||
int | getCharset() | |
void | setCharset(int value) | |
Gets or sets the character set for the font. | ||
int | getFamily() | |
void | setFamily(int value) | |
Gets or sets the font family this font belongs to. The value of the property is FontFamily integer constant. | ||
boolean | isTrueType() | |
void | isTrueType(boolean value) | |
Indicates that this font is a TrueType or OpenType font as opposed to a raster or vector font. Default is true. | ||
java.lang.String | getName() | |
Gets the name of the font. | ||
byte[] | getPanose() | |
void | setPanose(byte[] value) | |
Gets or sets the PANOSE typeface classification number. | ||
int | getPitch() | |
void | setPitch(int value) | |
The pitch indicates if the font is fixed pitch, proportionally spaced, or relies on a default setting. The value of the property is FontPitch integer constant. |
Method Summary | ||
---|---|---|
byte[] | getEmbeddedFont(int format, int style) | |
Gets a specific embedded font file. |
Property Getters/Setters Detail |
---|
getAltName/setAltName | |
public java.lang.String getAltName() / public void setAltName(java.lang.String value) |
Cannot be null
. Can be an empty string.
getCharset/setCharset | |
public int getCharset() / public void setCharset(int value) |
getFamily/setFamily | |
public int getFamily() / public void setFamily(int value) |
isTrueType/isTrueType | |
public boolean isTrueType() / public void isTrueType(boolean value) |
getName | |
public java.lang.String getName() |
Cannot be null
. Can be an empty string.
getPanose/setPanose | |
public byte[] getPanose() / 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
.
getPitch/setPitch | |
public int getPitch() / public void setPitch(int value) |
Method Detail |
---|
getEmbeddedFont | |
public byte[] getEmbeddedFont(int format, int style) |
format
- A style
- A null
if the specified font is not embedded.