FontData

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IFontData

public final class FontData implements IFontData

Represents a font definition. Immutable.

Constructors

ConstructorDescription
FontData(String fontName)Creates a new FontData object with the specified font name.

Methods

MethodDescription
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:

ParameterTypeDescription
fontNamejava.lang.StringFont 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:

ParameterTypeDescription
themeIThemeEffectiveDataTheme 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:

ParameterTypeDescription
objjava.lang.ObjectThe 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.