AutoSizeSchema

@Serializable
sealed interface AutoSizeSchema

SimpleText.autoSize — automatic font-size scaling to fit the available space, converted to Compose's TextAutoSize via AutoSizeSchema.toTextAutoSize(). StepBased is the only variant today, mirroring Compose's own TextAutoSize.StepBased.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "StepBased")
data class StepBased(val minFontSize: Float, val maxFontSize: Float, val stepSize: Float) : AutoSizeSchema

Shrinks/grows the font size in discrete steps between minFontSize and maxFontSize until the text fits.