createTextStyle
fun createTextStyle(fontSize: TextUnit, baseFontSize: TextUnit, color: Color, lineHeightMultiplier: Double, fontFamily: FontFamily, fontWeight: FontWeight, extraLetterSpacing: Boolean = true): TextStyle(source)
Creates a Skapa TextStyle with the given parameters. Used to create the typography text styles.
Note: letter spacing is not recalculated when the style is modified via TextStyle.copy or by passing a different fontWeight.
Return
The TextStyle with the given parameters.
Parameters
fontSize
The size of the font.
baseFontSize
The base font size used for scaling.
color
The color of the text.
lineHeightMultiplier
The multiplier for the line height.
fontFamily
The font family.
fontWeight
The font weight.
extraLetterSpacing
Whether to apply extra letter spacing for supported font families (NotoIkeaLatin and NotoIkeaThai). Defaults to true.