fontWeight

fun fontWeight(value: String)

Sets the font-weight attribute of the text, which defines the weight (thickness) of the font.

Parameters

value

The font weight value (e.g., "normal", "bold").