DXFontMetrics Class
Stores font metrics.
Declaration
public class DXFontMetrics extends JavaObject
Inherited Members
com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Inheritance
Object
com.devexpress.system.JavaObject
DXFontMetrics
DXFontMetrics(String name, float ascent, float descent, float lineSpacing, float height)
Initializes a new instance of the DXFontMetrics class with specified settings.
Declaration
public DXFontMetrics(String name, float ascent, float descent, float lineSpacing, float height)
Parameters
| Name | Type | Description |
|---|---|---|
| name | String | The font name. |
| ascent | float | The font ascent. |
| descent | float | The font descent. |
| lineSpacing | float | The line spacing. |
| height | float | The font height. |
Methods
getAscent() Method
Returns the font ascent.
Declaration
public float getAscent()
Returns
| Type | Description |
|---|---|
| float | The font ascent. |
getDescent() Method
Returns the font descent.
Declaration
public float getDescent()
Returns
| Type | Description |
|---|---|
| float | The font descent. |
getLineSpacing() Method
Returns the line spacing.
Declaration
public float getLineSpacing()
Returns
| Type | Description |
|---|---|
| float | The line spacing. |
getName() Method
Returns the font name.
Declaration
public String getName()
Returns
| Type | Description |
|---|---|
| String | The font name. |