FontIconBitmap
A function that draws the icon iconName using the typeface into a new Bitmap. 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
A function that draws the icon using the typeface into a new Bitmap. 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
A function that draws the icon iconName using the iconFont into a new Bitmap. 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
A function that draws the icon using the iconFont into a new Bitmap. 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
A function that draws the icon iconName using the variable typeface into a new Bitmap. 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
A function that draws the icon using the variable typeface into a new Bitmap. 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
A function that draws the icon iconName using the variable iconFont into a new Bitmap. 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
A function that draws the icon using the variable iconFont into a new Bitmap. 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
Deprecated
This function will be removed in a future release.
Replace with
FontIconBitmap(iconName, iconFont, tint, context, density, size, weight)
A function that draws the icon iconName using iconFont into a new Bitmap. 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.
Parameters
the icon name (can be a single character or a string)
the Context used to get specific values like density or layout direction
the tint to be applied to this icon
the icon font used to draw this icon
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
Deprecated
This function will be removed in a future release.
Replace with
FontIconBitmap(icon, iconFont, tint, context, density, size, weight)
A function that draws the icon using iconFont into a new Bitmap. 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.
Parameters
the icon Unicode character
the Context used to get specific values like density or layout direction
the tint to be applied to this icon
the icon font used to draw this icon
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal