font

fun Component.font(font: String): Component


fun <C : BuildableComponent<C, B>, B : ComponentBuilder<C, B>> ComponentBuilder<C, B>.font(font: String): B

Sets the font of this component to font.

Equivalent to font(Key.key(font)).