SourceSets
rememberStaticIconFont
Android
kotlin
@Composable
actual fun rememberStaticIconFont(fontResource: FontResource, fontFeatureSettings: String?): StaticIconFont
Common
kotlin
@Composable
fun rememberStaticIconFont(vararg fonts: Font, fontFeatureSettings: String? = null): StaticIconFont
Creates a static IconFont using a list of Font objects. Multiple fonts might be provided to support multiple weights.
Parameters
fonts | the font(s) used to draw the icons |
fontFeatureSettings | the font feature settings, written in a CSS syntax |
kotlin
@Composable
fun rememberStaticIconFont(font: Font, fontFeatureSettings: String? = null): StaticIconFont
Creates a static IconFont using a Font.
Parameters
font | the font used to draw the icons |
fontFeatureSettings | the font feature settings, written in a CSS syntax |
kotlin
@Composable
expect fun rememberStaticIconFont(fontResource: FontResource, fontFeatureSettings: String? = null): StaticIconFont
Creates a static IconFont using a Compose Multiplatform FontResource.
Parameters
fontResource | the font resource used to draw the icons |
fontFeatureSettings | the font feature settings, written in a CSS syntax |
Skiko (Desktop & Web)
kotlin
@Composable
actual fun rememberStaticIconFont(fontResource: FontResource, fontFeatureSettings: String?): StaticIconFont