Source set: Android
public class TextMotion internal constructor(
internal val linearity: Linearity,
internal val subpixelTextPositioning: Boolean,
)
Implementation of possible TextMotion configurations on Android.
Functions
equals
Source set: Android
override fun equals(other: Any?): Boolean
hashCode
Source set: Android
override fun hashCode(): Int
toString
Source set: Android
override fun toString(): String
Members
Companion
Source set: Android
public actual companion object
Properties
Static
Source set: Android
public val Static: TextMotion = TextMotion(Linearity.FontHinting, false)
Animated
Source set: Android
public val Animated: TextMotion = TextMotion(Linearity.Linear, true)
Source set: Common
public class TextMotion
Configures glyph rendering and placement for readability or smooth animations.
Members
Companion
Source set: Common
public companion object
Properties
Static
Source set: Common
public val Static: TextMotion
Optimizes rendering for readability.
Use for static (non-animated) text. This is the default.
Animated
Source set: Common
public val Animated: TextMotion
Renders text with maximum linearity to provide smooth scaling, translating, or rotating animations.
May slightly reduce readability on low-DPI devices.