Class

BaselineShift

The amount by which the text is shifted up or down from current the baseline.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
value class BaselineShift(val multiplier: Float)

The amount by which the text is shifted up or down from current the baseline.

Parameters

multiplier shift the baseline by multiplier * (baseline - ascent)

Companion Object

Properties

Common
val Superscript = BaselineShift(0.5f)

Default baseline shift for superscript.

Common
val Subscript = BaselineShift(-0.5f)

Default baseline shift for subscript

Common
val None = BaselineShift(0.0f)

Constant for no baseline shift.

Common
val Unspecified = BaselineShift(Float.NaN)

Constant for an unset baseline shift.