drawFontIcon
An extension function that draws the icon iconName using the typeface into the receiver Canvas. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon name (icon aliases/font ligatures are supported)
the Paint used to draw this icon
the font feature settings, written in a CSS syntax
the tint to be applied to this icon
the size of the icon, by default 24 dp
An extension function that draws the icon using the typeface into the receiver Canvas. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon Unicode character
the Paint used to draw this icon
the font feature settings, written in a CSS syntax
the tint to be applied to this icon
the size of the icon, by default 24 dp
An extension function that draws the icon iconName using the iconFont into the receiver Canvas. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon name (icon aliases/font ligatures are supported)
the StaticIconFont used to draw this icon
the tint to be applied to this icon
the Context used to access some typefaces
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
An extension function that draws the icon using the iconFont into the receiver Canvas. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon Unicode character
the StaticIconFont used to draw this icon
the tint to be applied to this icon
the Context used to access some typefaces
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
An extension function that draws the icon iconName using the variable typeface into the receiver Canvas. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon name (icon aliases/font ligatures are supported)
the Paint used to draw this icon
the font feature settings, written in a CSS syntax
the font variation settings, should not include the optical size ('opsz') or the weight ('wght')
the tint to be applied to this icon
the Density used to compute icon dimensions and variation values
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
An extension function that draws the icon using the variable typeface into the receiver Canvas. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon Unicode character
the Paint used to draw this icon
the font feature settings, written in a CSS syntax
the font variation settings, should not include the optical size ('opsz') or the weight ('wght')
the tint to be applied to this icon
the Density used to compute icon dimensions and variation values
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
An extension function that draws the icon iconName using the variable iconFont into the receiver Canvas. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon name (icon aliases/font ligatures are supported)
the VariableIconFont used to draw this icon
the tint to be applied to this icon
the Context used to access some typefaces
the Density used to compute icon dimensions and variation values
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
An extension function that draws the icon using the variable iconFont into the receiver Canvas. The icon will be size × size dp, and will be tinted with tint.
Parameters
the icon Unicode character
the VariableIconFont used to draw this icon
the tint to be applied to this icon
the Context used to access some typefaces
the Density used to compute icon dimensions and variation values
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal