DXFont Class
A font.
Declaration
public class DXFont extends JavaObject implements IEquatable<DXFont>
Implements
Inherited Members
Inheritance
Constructors
DXFont(DXFont prototype, DXFontStyle newStyle) Constructor
Initializes a new instance of the DXFont class with specified settings.
Declaration
public DXFont(DXFont prototype, DXFontStyle newStyle)
Parameters
| Name | Type | Description |
|---|---|---|
| prototype | DXFont |
The source font. |
| newStyle | DXFontStyle | The new font style. |
DXFont(String name, float size, DXFontStyle style, DXGraphicsUnit unit, DXFontAdditionalProperty[] additionalProperties) Constructor
Initializes a new instance of the DXFont class with specified settings.
Declaration
public DXFont(String name, float size, DXFontStyle style, DXGraphicsUnit unit, DXFontAdditionalProperty[] additionalProperties)
Parameters
| Name | Type | Description |
|---|---|---|
| name | String | The font name. |
| size | float | The font size. |
| style | DXFontStyle | The font style. |
| unit | DXGraphicsUnit | The font unit. |
| additionalProperties | DXFontAdditionalProperty[] | The additional font properties. |
DXFont(String name, float size, DXFontStyle style, DXGraphicsUnit unit) Constructor
Initializes a new instance of the DXFont class with specified settings.
Declaration
public DXFont(String name, float size, DXFontStyle style, DXGraphicsUnit unit)
Parameters
| Name | Type | Description |
|---|---|---|
| name | String | The font name. |
| size | float | The font size. |
| style | DXFontStyle | The font style. |
| unit | DXGraphicsUnit | The font unit. |
DXFont(String name, float size, DXFontStyle style) Constructor
Initializes a new instance of the DXFont class with specified settings.
Declaration
public DXFont(String name, float size, DXFontStyle style)
Parameters
| Name | Type | Description |
|---|---|---|
| name | String | The font name. |
| size | float | The font size. |
| style | DXFontStyle | The font style. |
DXFont(String name, float size) Constructor
Initializes a new instance of the DXFont class with specified settings.
Declaration
public DXFont(String name, float size)
Parameters
| Name | Type | Description |
|---|---|---|
| name | String | The font name. |
| size | float | The font size. |
Methods
clone() Method
Creates a copy of this font.
Declaration
public DXFont clone()
Returns
| Type | Description |
|---|---|
DXFont |
The cloned |
equals(DXFont other) Method
Checks whether this font equals the specified font.
Declaration
public boolean equals(DXFont other)
Parameters
| Name | Type | Description |
|---|---|---|
| other | DXFont |
The font to compare. |
Returns
| Type | Description |
|---|---|
| boolean |
|
equals(Object obj) Method
Checks whether this font equals the specified font.
Declaration
public boolean equals(Object obj)
Parameters
| Name | Type | Description |
|---|---|---|
| obj | Object | The font to compare. |
Returns
| Type | Description |
|---|---|
| boolean |
|
getAdditionalProperties() Method
Returns additional properties.
Declaration
public IDXFontAdditionalPropertyCollection getAdditionalProperties()
Returns
| Type | Description |
|---|---|
| IDXFontAdditionalPropertyCollection | Font additional properties. |
getBold() Method
Returns the bold state.
Declaration
public boolean getBold()
Returns
| Type | Description |
|---|---|
| boolean |
|
getHeight() Method
Returns the height.
Declaration
public int getHeight()
Returns
| Type | Description |
|---|---|
| int | The font height. |
getHeight(DXGraphicsUnit graphicsUnit) Method
Returns the height.
Declaration
public float getHeight(DXGraphicsUnit graphicsUnit)
Parameters
| Name | Type | Description |
|---|---|---|
| graphicsUnit | DXGraphicsUnit | The graphics unit. |
Returns
| Type | Description |
|---|---|
| float | The font height. |
getHeight(float dpi) Method
Returns the height.
Declaration
public float getHeight(float dpi)
Parameters
| Name | Type | Description |
|---|---|---|
| dpi | float | The DPI value. |
Returns
| Type | Description |
|---|---|
| float | The font height. |
getItalic() Method
Returns the italic state.
Declaration
public boolean getItalic()
Returns
| Type | Description |
|---|---|
| boolean |
|
getLayoutMetrics(DXGraphicsUnit pageUnit) Method
Returns the layout metrics.
Declaration
public DXFontLayoutMetrics getLayoutMetrics(DXGraphicsUnit pageUnit)
Parameters
| Name | Type | Description |
|---|---|---|
| pageUnit | DXGraphicsUnit | The page unit. |
Returns
| Type | Description |
|---|---|
| DXFontLayoutMetrics | The font layout metrics. |
getMetrics() Method
Returns the metrics.
Declaration
public DXFontMetrics getMetrics()
Returns
| Type | Description |
|---|---|
| DXFontMetrics | The font metrics. |
getName() Method
Returns the name.
Declaration
public String getName()
Returns
| Type | Description |
|---|---|
| String | The font name. |
getSize() Method
Returns the size.
Declaration
public float getSize()
Returns
| Type | Description |
|---|---|
| float | The font size. |
getSizeInPoints() Method
Returns the size in points.
Declaration
public float getSizeInPoints()
Returns
| Type | Description |
|---|---|
| float | The font size in points. |
getStrikeout() Method
Returns the strikeout state.
Declaration
public boolean getStrikeout()
Returns
| Type | Description |
|---|---|
| boolean |
|
getStyle() Method
Returns the style.
Declaration
public DXFontStyle getStyle()
Returns
| Type | Description |
|---|---|
| DXFontStyle | The font style. |
getUnderline() Method
Returns the underline state.
Declaration
public boolean getUnderline()
Returns
| Type | Description |
|---|---|
| boolean |
|
getUnit() Method
Returns the unit.
Declaration
public DXGraphicsUnit getUnit()
Returns
| Type | Description |
|---|---|
| DXGraphicsUnit | The font unit. |
hashCode() Method
Returns a hash code value for this object.
Declaration
public int hashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |
toString() Method
Returns the string representation of this font.
Declaration
public String toString()
Returns
| Type | Description |
|---|---|
| String | The string representation of this font. |