FontIcon
A component that draws the icon iconName using iconFont (with a default value of LocalIconFont). The icon will be size × size dp, and will be tinted with tint. If iconFont is a variable font, weight will applied as a variation setting, or else the font with the nearest weight will be picked.
WARNING: variable fonts are only supported on Android Oreo (API 26) and above. Trying to use them on lower API versions will result in an UnsupportedOperationException being thrown
Parameters
the icon name in the font (can be a single character or a string)
text used by accessibility services to describe what this icon represents. This should always be provided unless this icon is used for decorative purposes, and does not represent a meaningful action that a user can take. This text should be localized, such as by using androidx.compose.ui.res.stringResource or similar
the Modifier to be applied to this icon
the size of the icon, by default LocalIconSize
the tint to be applied to this icon, by default LocalGlanceIconTint
the font weight of the icon, by default LocalIconWeight
the icon font used to draw this icon, by default LocalIconFont
A component that draws the icon using iconFont (with a default value of LocalIconFont). The icon will be size × size dp, and will be tinted with tint. If iconFont is a variable font, weight will applied as a variation setting, or else the font with the nearest weight will be picked.
WARNING: variable fonts are only supported on Android Oreo (API 26) and above. Trying to use them on lower API versions will result in an UnsupportedOperationException being thrown
Parameters
the icon Unicode character
text used by accessibility services to describe what this icon represents. This should always be provided unless this icon is used for decorative purposes, and does not represent a meaningful action that a user can take. This text should be localized, such as by using androidx.compose.ui.res.stringResource or similar
the Modifier to be applied to this icon
the size of the icon, by default LocalIconSize
the tint to be applied to this icon, by default LocalGlanceIconTint
the font weight of the icon, by default LocalIconWeight
the icon font used to draw this icon, by default LocalIconFont