Package-level declarations

Functions

Link copied to clipboard

Black font weight (900) — the heaviest available stroke.

Link copied to clipboard

Bold font weight (700).

Link copied to clipboard

Centers text horizontally.

Link copied to clipboard

Cuts off overflowing text at the tile's bounds with no visual indicator.

Link copied to clipboard

Cursive/handwriting-style font family.

Link copied to clipboard

Platform default font family.

Link copied to clipboard

Truncates overflowing text and appends an ellipsis ("…") at the cut point.

Link copied to clipboard

Aligns text to the end edge (mirrored under RTL).

Link copied to clipboard

Extra-bold font weight (800).

Link copied to clipboard

Extra-light font weight (200).

Link copied to clipboard

Italic (slanted) font style.

Link copied to clipboard

Justifies text — stretches each line (except the last) to fill the available width.

Link copied to clipboard

Aligns text to the left edge, regardless of layout direction.

Link copied to clipboard

Light font weight (300).

Link copied to clipboard

Draws a line through the middle of the text (strikethrough).

Link copied to clipboard

Medium font weight (500).

Link copied to clipboard

Monospace font family — every character occupies the same width.

Link copied to clipboard

No text decoration.

Link copied to clipboard

Upright (non-italic) font style.

Link copied to clipboard

Normal/regular font weight (400) — the default text weight.

Link copied to clipboard

Aligns text to the right edge, regardless of layout direction.

Link copied to clipboard

Sans-serif font family (e.g. Roboto-like, no letter strokes).

Link copied to clipboard

Semi-bold font weight (600).

Link copied to clipboard

Serif font family (e.g. Times-like, with letter strokes).

Link copied to clipboard

Aligns text to the start edge (mirrored under RTL).

Link copied to clipboard
fun stepBasedAutoSize(minFontSize: Float, maxFontSize: Float, stepSize: Float): AutoSizeSchema.StepBased

Automatic font-size scaling for SimpleText: the renderer picks the largest size, stepping down from maxFontSize to minFontSize by stepSize, that still lets the text fit its available space.

Link copied to clipboard

Thin font weight (100) — the lightest available stroke.

Link copied to clipboard

Draws a line under the text.

Link copied to clipboard

Lets overflowing text spill outside the tile's bounds instead of being cut off.