DXFontData Class
Stores font file metadata.
Declaration
public final class DXFontData extends Struct<DXFontData>
Inherited Members
Inheritance
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 |
|
getBold() Method
Returns whether the font uses bold style.
Declaration
public boolean getBold()
Returns
| Type | Description |
|---|---|
| boolean |
|
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 |
|
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. |