<div class='sourceset sourceset-android'>Android</div>

```kotlin
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

<h2 id="takeorelse-block">takeOrElse</h2>

```kotlin
public inline fun takeOrElse(block: () -> WarpOffset): WarpOffset
```

If this [WarpOffset](/jetpack-compose/androidx.wear.compose/compose-foundation/classes/CurvedTextStyle.WarpOffset) [isSpecified](/jetpack-compose/androidx.compose.ui/ui-geometry/properties/isSpecified) then this is returned, otherwise `block` is executed
and its result is returned.

## Companion Object

#### Properties

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public val Unspecified: WarpOffset
```

Unspecified, used for merging styles

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public val None: WarpOffset
```

Do not warp, use the standard Android rendering

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public val Baseline: WarpOffset
```

Warp using the baseline of the text.

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public val HalfAscent: WarpOffset
```

Warp using half the ascent of the text.

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public val HalfOpticalHeight: WarpOffset
```

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

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public val Ascent: WarpOffset
```

Warp using the ascent of the text.

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public val Descent: WarpOffset
```

Warp using the descent of the text.