FontData
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.slides.IFontData
public final class FontData implements IFontData
Represents a font definition. Immutable.
Constructors
| Constructor | Description |
|---|---|
| FontData(String fontName) | Creates a new FontData object with the specified font name. |
Methods
| Method | Description |
|---|---|
| getFontName() | Returns the font name. |
| getFontName(IThemeEffectiveData theme) | Returns the font name, replacing theme referrence with an actual font used. |
| equals(Object obj) | Determines whether two FontData instances are equal. |
| hashCode() | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
| toString() | Returns string representation. |
FontData(String fontName)
public FontData(String fontName)
Creates a new FontData object with the specified font name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fontName | java.lang.String | Font name. |
getFontName()
public final String getFontName()
Returns the font name. Read/write String.
Returns: java.lang.String
getFontName(IThemeEffectiveData theme)
public final String getFontName(IThemeEffectiveData theme)
Returns the font name, replacing theme referrence with an actual font used.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| theme | IThemeEffectiveData | Theme from which themed font name should be taken. Its up to caller to provide a correct value. See IThemeable.createThemeEffective |
Returns: java.lang.String - Font name.
equals(Object obj)
public boolean equals(Object obj)
Determines whether two FontData instances are equal.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object | The FontData to compare with the current FontData. |
Returns: boolean - true if the specified FontData is equal to the current FontData; otherwise, false.
hashCode()
public int hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
Returns: int - Hash code of the FontData.
toString()
public String toString()
Returns string representation.
Returns: java.lang.String - String representatoin.