StepBased

@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.

Constructors

Link copied to clipboard
constructor(minFontSize: Float, maxFontSize: Float, stepSize: Float)

Properties

Link copied to clipboard
@SerialName(value = "maxFontSize")
val maxFontSize: Float

largest font size to try, in sp.

Link copied to clipboard
@SerialName(value = "minFontSize")
val minFontSize: Float

smallest font size to try, in sp.

Link copied to clipboard
@SerialName(value = "stepSize")
val stepSize: Float

increment between tried sizes, in sp.