{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

TextGeometricTransform

public final class TextGeometricTransform


Define a geometric transformation on text.

Summary

Public constructors

TextGeometricTransform(float scaleX, float skewX)

Public methods

final @NonNull TextGeometricTransform
copy(float scaleX, float skewX)
boolean
equals(Object other)
final float

The scale of the text on the horizontal direction.

final float

The shear of the text on the horizontal direction.

int
@NonNull String

Public constructors

TextGeometricTransform

public TextGeometricTransform(float scaleX, float skewX)
Parameters
float scaleX

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

float skewX

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 methods

copy

public final @NonNull TextGeometricTransform copy(float scaleX, float skewX)

equals

public boolean equals(Object other)

getScaleX

public final float getScaleX()

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

getSkewX

public final float getSkewX()

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.

hashCode

public int hashCode()

toString

public @NonNull String toString()