CurvedTextStyle.WarpOffset

value class CurvedTextStyle.WarpOffset


Used to specify if we want to warp the text, and if so, the offset for warping. Warping the text will cause each character to be modified in shape so that it is thinner when it is closer to the center of the center of the screen and wider when it's further away. This also makes adjacent characters share a line, so this is particularly useful for cursive fonts. When warping is active, this parameter specifies which horizontal line of the text will keep its width.

Summary

Public companion properties

CurvedTextStyle.WarpOffset

Warp using the ascent of the text.

CurvedTextStyle.WarpOffset

Warp using the baseline of the text.

CurvedTextStyle.WarpOffset

Warp using the descent of the text.

CurvedTextStyle.WarpOffset

Warp using half the ascent of the text.

CurvedTextStyle.WarpOffset

Warp using the middle point between ascent and descent of the text.

CurvedTextStyle.WarpOffset

Do not warp, use the standard Android rendering

CurvedTextStyle.WarpOffset

Unspecified, used for merging styles

Public functions

inline CurvedTextStyle.WarpOffset

If this WarpOffset then this is returned, otherwise block is executed and its result is returned.

open String

Public properties

Boolean

false when this is WarpOffset.Unspecified.

Boolean

true when this is WarpOffset.Unspecified.

Public companion properties

Ascent

val AscentCurvedTextStyle.WarpOffset

Warp using the ascent of the text.

Baseline

val BaselineCurvedTextStyle.WarpOffset

Warp using the baseline of the text.

Descent

val DescentCurvedTextStyle.WarpOffset

Warp using the descent of the text.

HalfAscent

val HalfAscentCurvedTextStyle.WarpOffset

Warp using half the ascent of the text.

HalfOpticalHeight

val HalfOpticalHeightCurvedTextStyle.WarpOffset

Warp using the middle point between ascent and descent of the text. This is the default

None

val NoneCurvedTextStyle.WarpOffset

Do not warp, use the standard Android rendering

Unspecified

val UnspecifiedCurvedTextStyle.WarpOffset

Unspecified, used for merging styles

Public functions

takeOrElse

Added in 1.6.0-alpha02
inline fun takeOrElse(block: () -> CurvedTextStyle.WarpOffset): CurvedTextStyle.WarpOffset

If this WarpOffset then this is returned, otherwise block is executed and its result is returned.

toString

open fun toString(): String

Public properties

isSpecified

val isSpecifiedBoolean

false when this is WarpOffset.Unspecified.

isUnspecified

val isUnspecifiedBoolean

true when this is WarpOffset.Unspecified.