com.aspose.slides
Class FontEntity

java.lang.Object
  extended by com.aspose.slides.FontEntity

public final class FontEntity
extends java.lang.Object

Represents a font used in a presentation.


Constructor Summary
FontEntity(Presentation pres, FontEntity fontEntity)
           Initializes a new instance of the FontEntity class.
 
Method Summary
 boolean equals(java.lang.Object o)
           Returns a value indicating whether this instance is equal to a specified object.
 int getCharSet()
           Returns or sets a font character set.
 int getFamily()
           Returns or sets a font family.
 int getFontId()
           Returns the id of a font.
 int getFontIndex()
          Deprecated. 
 java.lang.String getFontName()
           Returns or sets a font name.
 int getPitch()
           Returns or sets a font pitch.
 int getQuality()
           Returns or sets a font quality.
 int hashCode()
           Returns the hash code for this instance (always 0 in the current implementation).
 void setCharSet(int value)
           
 void setFamily(int value)
           
 void setFontName(java.lang.String value)
           
 void setPitch(int value)
           
 void setQuality(int value)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontEntity

public FontEntity(Presentation pres,
                  FontEntity fontEntity)

Initializes a new instance of the FontEntity class.

Parameters:
pres - Presentation where new font will be inserted to.
fontEntity - Source font for cloning.
Method Detail

getFontId

public int getFontId()

Returns the id of a font. Read-only int.


getFontIndex

@Deprecated
public int getFontIndex()
Deprecated. 

Returns the index of a font. Read-only int.


getFontName

public java.lang.String getFontName()

Returns or sets a font name. Read/write string.


setFontName

public void setFontName(java.lang.String value)

getCharSet

public int getCharSet()

Returns or sets a font character set. Read/write FontCharSet.


setCharSet

public void setCharSet(int value)

getQuality

public int getQuality()

Returns or sets a font quality. Read/write FontQuality.


setQuality

public void setQuality(int value)

getFamily

public int getFamily()

Returns or sets a font family. Read/write FontFamily.


setFamily

public void setFamily(int value)

getPitch

public int getPitch()

Returns or sets a font pitch. Read/write FontPitch.


setPitch

public void setPitch(int value)

equals

public boolean equals(java.lang.Object o)

Returns a value indicating whether this instance is equal to a specified object.

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to compare with this instance.
Returns:
<b>True</b> if o is a FontEntity that has the same value as this instance; otherwise, <b>false</b>.

hashCode

public int hashCode()

Returns the hash code for this instance (always 0 in the current implementation).

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code for this instance.