StyledText.styleMap

Range assigning slices of text to styles by index. A single text can have up to 256 different styles.

Ranges should not overlap, and must be ordered by start. If a piece of text is not matched, it is assumed to belong to style 0.

struct StyledText(StyleRange = TextStyleSlice[])
StyleRange styleMap;

Meta