JengaTypographyDefaults

Recommended per-tier caps on the system font scale. Larger type is capped tighter (it scales the layout more); body and label allow the full range. Pass these to JengaText(maxFontScale = …).

Properties

Link copied to clipboard
const val BodyMaxFontScale: Float = 2.0f

Body text: allow up to 200%.

Link copied to clipboard
const val DisplayMaxFontScale: Float = 1.25f

Display type: cap at 125%.

Link copied to clipboard
const val HeadingMaxFontScale: Float = 1.5f

Headings: cap at 150%.

Link copied to clipboard
const val LabelMaxFontScale: Float = 2.0f

Labels/captions: allow up to 200%.

Link copied to clipboard
const val TitleMaxFontScale: Float = 1.5f

Titles: cap at 150%.