TextGeometricTransform


Define a geometric transformation on text.

Summary

Public constructors

TextGeometricTransform(scaleX: Float, skewX: Float)
Cmn

Public functions

TextGeometricTransform
copy(scaleX: Float, skewX: Float)
Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Float

The scale of the text on the horizontal direction.

Cmn
Float

The shear of the text on the horizontal direction.

Cmn

Public constructors

TextGeometricTransform

TextGeometricTransform(scaleX: Float = 1.0f, skewX: Float = 0.0f)
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 = 0.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.

Public functions

copy

fun copy(scaleX: Float = this.scaleX, skewX: Float = this.skewX): TextGeometricTransform

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

scaleX

val scaleXFloat

The scale of the text on the horizontal direction. The default value is 1.0f, i.e no scaling.

skewX

val skewXFloat

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.