toTextStyle

fun FontSpec.toTextStyle(fontWeight: FontWeight = FontWeight.Normal): TextStyle

Converts this FontSpec into a Compose TextStyle.

Parameters

fontWeight

The font weight (bold, medium, normal, etc.) to apply.