Skip to main content

DXFontData Class

Stores font file metadata.

Declaration

public final class DXFontData extends Struct<DXFontData>

Inherited Members

com.devexpress.system.Struct.equals(java.lang.Object)
com.devexpress.system.Struct.getHashCode()
com.devexpress.system.Struct.hashCode()
java.lang.Object.clone()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.system.Struct
DXFontData

Constructors

DXFontData() Constructor

Initializes a new instance of the DXFontData class.

Declaration

public DXFontData()

DXFontData(String filePath, String name, int ttcIndex, boolean bold, boolean italic) Constructor

Initializes a new instance of the DXFontData class with specified settings.

Declaration

public DXFontData(String filePath, String name, int ttcIndex, boolean bold, boolean italic)

Parameters

Name Type Description
filePath String

The font file path.

name String

The font name.

ttcIndex int

The font collection index.

bold boolean

The bold style flag.

italic boolean

The italic style flag.

Methods

equals(Object obj) Method

Checks whether this font data equals the specified object.

Declaration

public boolean equals(Object obj)

Parameters

Name Type Description
obj Object

The object to compare.

Returns

Type Description
boolean

true if the specified object equals this font data; otherwise, false.

getBold() Method

Returns whether the font uses bold style.

Declaration

public boolean getBold()

Returns

Type Description
boolean

true if the font uses bold style; otherwise, false.

getFilePath() Method

Returns the font file path.

Declaration

public String getFilePath()

Returns

Type Description
String

The font file path.

getItalic() Method

Returns whether the font uses italic style.

Declaration

public boolean getItalic()

Returns

Type Description
boolean

true if the font uses italic style; otherwise, false.

getName() Method

Returns the font name.

Declaration

public String getName()

Returns

Type Description
String

The font name.

getTtcIndex() Method

Returns the TTC index.

Declaration

public int getTtcIndex()

Returns

Type Description
int

The TTC index.

hashCode() Method

Returns a hash code value for this object.

Declaration

public int hashCode()

Returns

Type Description
int

The hash code.