fontStyle

open fun fontStyle(value: FontStyles.() -> FontStyleProperty)

This function sets the font-style property

Example call:

fontStyle { normal }

Parameters

value

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

open fun fontStyle(sm: FontStyles.() -> FontStyleProperty? = null, md: FontStyles.() -> FontStyleProperty? = null, lg: FontStyles.() -> FontStyleProperty? = null, xl: FontStyles.() -> FontStyleProperty? = null)

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

Example call:

fontStyle(
sm = { normal },
lg = { italic }
)

Parameters

lg

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

md

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

sm

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

xl

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