rememberVariableIconFont

@RequiresApi(value = 26)
fun rememberVariableIconFont(path: String, weights: Array<FontWeight>, fontVariationSettings: Array<FontVariation.Setting> = emptyArray(), fontFeatureSettings: String? = null): IconFont

Deprecated

The base package now supports using the Glance context, this function is now useless and will be removed in the future

Replace with

import dev.tclement.fonticons.rememberVariableIconFont
rememberVariableIconFont

Creates a variable IconFont from a file in the assets directory

Parameters

path

full path starting from the assets directory

weights

supported weights for the font

fontVariationSettings

the font variation settings, should not include the optical size ('opsz') and must not include the weight ('wght')

fontFeatureSettings

the font feature settings, written in a CSS syntax

See also