Class

BaselineShift

Shifts the text baseline vertically (up or down).

Source set: Common
public class BaselineShift(public val multiplier: Float)

Shifts the text baseline vertically (up or down).

Parameters

multiplier multiplier to shift the baseline (distance = multiplier * (baseline - ascent)).

Members

Companion

Source set: Common
public companion object

Properties

Superscript

Source set: Common
public val Superscript: BaselineShift

Default baseline shift for superscript.

Subscript

Source set: Common
public val Subscript: BaselineShift

Default baseline shift for subscript

None

Source set: Common
public val None: BaselineShift

Constant for no baseline shift.

Unspecified

Source set: Common
public val Unspecified: BaselineShift

Represents an unset BaselineShift value.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: