paragraphStyle

fun <T> paragraphStyle(key: <Error class: unknown class><T>, mapper: (T) -> ParagraphStyle)

Registers a ParagraphStyle mapping for a specific AttributeKey. When the AttributeContainer contains this key, the mapper is invoked with the key's value.