TextGeometricTransform
Kotlin
|Java
@Immutable data class TextGeometricTransform
kotlin.Any | |
↳ | androidx.compose.ui.text.style.TextGeometricTransform |
Define a geometric transformation on text.
Summary
Public constructors | |
---|---|
Define a geometric transformation on text. |
Properties | |
---|---|
Float |
The scale of the text on the horizontal direction. |
Float |
The shear of the text on the horizontal direction. |
Public constructors
<init>
TextGeometricTransform(
scaleX: Float = 1.0f,
skewX: Float = 0f)
Define a geometric transformation on text.
Parameters | |
---|---|
scaleX: Float = 1.0f | The scale of the text on the horizontal direction. The default value is 1.0f, i.e no scaling. |
skewX: Float = 0f | The shear of the text on the horizontal direction. A pixel at (x, y), where y is the distance above baseline, will be transformed to (x + y * skewX, y). The default value is 0.0f i.e. no skewing. |
Properties
scaleX
val scaleX: Float
The scale of the text on the horizontal direction. The default value is 1.0f, i.e no scaling.
skewX
val skewX: Float
The shear of the text on the horizontal direction. A pixel at (x, y), where y is the distance above baseline, will be transformed to (x + y * skewX, y). The default value is 0.0f i.e. no skewing.