Class

TextMotion

Defines ways to render and place glyphs to provide readability and smooth animations for text.

Source set: Common
expect class TextMotion

Defines ways to render and place glyphs to provide readability and smooth animations for text.

Companion Object

Properties

Source set: Common
val Static: TextMotion

Optimizes glyph shaping, placement, and overall rendering for maximum readability. Intended for text that is not animated. This is the default TextMotion.

Source set: Common
val Animated: TextMotion

Text is rendered for maximum linearity which provides smooth animations for text. Trade-off is the readability of the text on some low DPI devices, which still should not be a major concern. Use this TextMotion if you are planning to scale, translate, or rotate text.

Source set: Android
actual class TextMotion
internal constructor(
    internal val linearity: Linearity,
    internal val subpixelTextPositioning: Boolean,
)

Implementation of possible TextMotion configurations on Android.

Companion Object

Properties

Source set: Android
actual val Static: TextMotion
Source set: Android
actual val Animated: TextMotion

Last updated: