createVariableIconFont
Creates a variable IconFont using a FontConstructor.
This function is not composable, use rememberVariableIconFont when in a composition.
Parameters
a function returning a Font object, taking as parameters the weight (FontWeight) and the variation settings (FontVariation.Settings)
the supported weights for the font
the font variation settings, should not include the optical size ('opsz') and must not include the weight ('wght')
the font feature settings, written in a CSS syntax
Creates a variable IconFont using a Compose Multiplatform FontResource.
This function is marked as experimental because its Android implementation is using experimental workarounds:
On Android 11 and higher this will shortly create an in-memory file descriptor.
On Android 8 and higher this will create a temporary file (this file will be deleted after the font is loaded).
On Android 7 and lower this will also create a temporary file, but the variation settings will be ignored.
This function is not composable, use rememberVariableIconFont when in a composition.
Parameters
the Compose Multiplatform resource ID
the supported weights for the font
the font variation settings, should not include the optical size ('opsz') and must not include the weight ('wght')
the font feature settings, written in a CSS syntax
the resource environment to use to load the font
the density of the screen, optionally used to convert density-dependent variation settings to pixels
Creates a variable IconFont using a Compose Multiplatform FontResource.
This function is marked as experimental because its Android implementation is using experimental workarounds:
On Android 11 and higher this will shortly create an in-memory file descriptor.
On Android 8 and higher this will create a temporary file (this file will be deleted after the font is loaded).
On Android 7 and lower this will also create a temporary file, but the variation settings will be ignored.
This function is not composable, use rememberVariableIconFont when in a composition.
Parameters
the Compose Multiplatform resource ID
the supported weights for the font
the font variation settings, should not include the optical size ('opsz') and must not include the weight ('wght')
the font feature settings, written in a CSS syntax
the resource environment to use to load the font
the density of the screen, optionally used to convert density-dependent variation settings to pixels
Creates a variable IconFont using a Skia Typeface.
This function is not composable, use rememberVariableIconFont when in a composition
Parameters
the internal name to differentiate the typeface
the base Skia SkTypeface that will be cloned for each required variation settings
the supported weights for the font
the font variation settings, should not include the optical size ('opsz') and must not include the weight ('wght')
the font feature settings, written in a CSS syntax
the density of the screen, optionally used to convert density-dependent variation settings to pixels
Creates a variable IconFont using a Compose Multiplatform FontResource.
This function is marked as experimental because its Android implementation is using experimental workarounds:
On Android 11 and higher this will shortly create an in-memory file descriptor.
On Android 8 and higher this will create a temporary file (this file will be deleted after the font is loaded).
On Android 7 and lower this will also create a temporary file, but the variation settings will be ignored.
This function is not composable, use rememberVariableIconFont when in a composition.
Parameters
the Compose Multiplatform resource ID
the supported weights for the font
the font variation settings, should not include the optical size ('opsz') and must not include the weight ('wght')
the font feature settings, written in a CSS syntax
the resource environment to use to load the font
the density of the screen, optionally used to convert density-dependent variation settings to pixels