textFont

If set, the text-font argument overrides the font specified by the root layout properties.

<p> "text-font" is required to be a literal array. <p> The requested font stack has to be a part of the used style. For more information see <a href="https://www.mapbox.com/help/define-font-stack/">the documentation</a>.

Parameters

textFont

fun textFont(textFont: List<String>): Expression.FormatSectionBuilder

If set, the text-font argument overrides the font specified by the root layout properties.

<p> "text-font" is required to be a literal array. <p> The requested font stack has to be a part of the used style. For more information see <a href="https://www.mapbox.com/help/define-font-stack/">the documentation</a>.

Parameters

textFont

fun textFont(textFont: Expression): Expression.FormatSectionBuilder

If set, the text-font argument overrides the font specified by the root layout properties.

<p> "text-font" is required to be a literal array. <p> The requested font stack has to be a part of the used style. For more information see <a href="https://www.mapbox.com/help/define-font-stack/">the documentation</a>.

fun textFont(block: Expression.ExpressionBuilder.() -> Unit): Expression.FormatSectionBuilder