NormalTextAutoSize Class
A class that specifies normal text auto-sizing behavior.
Declaration
public class NormalTextAutoSize extends TextAutoSize
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
JavaObject
TextAutoSize
NormalTextAutoSize
NormalTextAutoSize(float fontScale, float lineSpacingReduction)
Initializes a new instance of the NormalTextAutoSize class with specified settings.
Declaration
public NormalTextAutoSize(float fontScale, float lineSpacingReduction)
Parameters
| Name | Type | Description |
|---|---|---|
| fontScale | float | Specifies the font scale factor. |
| lineSpacingReduction | float | Specifies the line spacing reduction. |
Methods
getFontScale() Method
Returns the font scale factor applied to the text.
Declaration
public float getFontScale()
Returns
| Type | Description |
|---|---|
| float | The font scale factor from |
getLineSpacingReduction() Method
Returns a scaling factor applied to the line spacing. That scaling factor reduces the space between lines to help text fit within a shape or bounding box during auto-sizing.
Declaration
public float getLineSpacingReduction()
Returns
| Type | Description |
|---|---|
| float | The scaling factor applied to the line spacing. |