fontWeight

open fun fontWeight(value: FontWeights.() -> FontWeightProperty)

This function sets the font-weight property

Example call:

fontWeight { bold }

Parameters

value

extension function parameter for small media devices, recommended to use predefined values from FontWeights

open fun fontWeight(sm: FontWeights.() -> FontWeightProperty? = null, md: FontWeights.() -> FontWeightProperty? = null, lg: FontWeights.() -> FontWeightProperty? = null, xl: FontWeights.() -> FontWeightProperty? = null)

This function sets the font-weight property for each media device independently.

Example call:

fontWeight(
sm = { normal },
lg = { bold }
)

Parameters

lg

extension function parameter for large media devices, recommended to use predefined values via FontWeights

md

extension function parameter for medium sized media devices, recommended to use predefined values via FontWeights

sm

extension function parameter for small media devices, recommended to use predefined values from FontWeights

xl

extension function parameter for extra large media devices, recommended to use predefined values via FontWeights