public value class WarpOffset internal constructor(internal val option: Byte)
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.
Functions
takeOrElse
public inline fun takeOrElse(block: () -> WarpOffset): WarpOffset
If this WarpOffset isSpecified then this is returned, otherwise block is executed and its result is returned.
Companion Object
Properties
public val Unspecified: WarpOffset
Unspecified, used for merging styles
public val None: WarpOffset
Do not warp, use the standard Android rendering
public val Baseline: WarpOffset
Warp using the baseline of the text.
public val HalfAscent: WarpOffset
Warp using half the ascent of the text.
public val HalfOpticalHeight: WarpOffset
Warp using the middle point between ascent and descent of the text. This is the default
public val Ascent: WarpOffset
Warp using the ascent of the text.
public val Descent: WarpOffset
Warp using the descent of the text.