Google is committed to advancing racial equity for Black communities. See how.

TextGeometricTransform

@Immutable data class TextGeometricTransform
kotlin.Any
   ↳ androidx.ui.text.style.TextGeometricTransform

Define a geometric transformation on text.

Summary

Public constructors
<init>(scaleX: Float = 1.0f, skewX: Float = 0f)

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.