com.aspose.words
Class FontInfo

java.lang.Object
    extended by com.aspose.words.FontInfo
All Implemented Interfaces:
java.lang.Cloneable

public class FontInfo 
extends java.lang.Object

Specifies the properties for a font used in a document.

You do not create instances of this class directly. Use the DocumentBase.FontInfos property to access the collection of fonts defined in a document.

See Also:
FontInfoCollection, DocumentBase.FontInfos

Property Getters/Setters Summary
java.lang.StringgetAltName()
voidsetAltName(java.lang.String value)
           Gets or sets the alternate name for the font.
intgetCharset()
voidsetCharset(int value)
           Gets or sets the character set for the font.
byte[]getEmbeddedData()
voidsetEmbeddedData(byte[] value)
           Contains the embedded font data for a TrueType font as read from the document.
intgetFamily()
voidsetFamily(int value)
           Gets or sets the font family this font belongs to. The value of the property is FontFamily integer constant.
booleanisTrueType()
voidisTrueType(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.StringgetName()
           Gets the name of the font.
byte[]getPanose()
voidsetPanose(byte[] value)
           Gets or sets the PANOSE typeface classification number.
intgetPitch()
voidsetPitch(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.
 

Property Getters/Setters Detail

getPitch/setPitch

public int getPitch() / public 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.

isTrueType/isTrueType

public boolean isTrueType() / public 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.

getFamily/setFamily

public int getFamily() / public void setFamily(int value)
Gets or sets the font family this font belongs to. The value of the property is FontFamily integer constant.

getCharset/setCharset

public int getCharset() / public void setCharset(int value)
Gets or sets the character set for the font.

getPanose/setPanose

public byte[] getPanose() / public void setPanose(byte[] value)
Gets or sets the PANOSE typeface classification number.

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.


getName

public java.lang.String getName()
Gets the name of the font.

Cannot be null. Can be an empty string.


getAltName/setAltName

public java.lang.String getAltName() / public void setAltName(java.lang.String value)
Gets or sets the alternate name for the font.

Cannot be null. Can be an empty string.


getEmbeddedData/setEmbeddedData

public byte[] getEmbeddedData() / public void setEmbeddedData(byte[] value)
Contains the embedded font data for a TrueType font as read from the document.

Can be null.


See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.