A container for user-defined bitmap fonts.
Introduced in Wear OS 4.
Syntax
<BitmapFonts> <BitmapFont name="string"> <!-- Only the most common inner element is shown here. --> <Character name="string" resource="string" width="positive-integer" height="positive-integer" /> ... </BitmapFont> </BitmapFonts>
Inner elements
The BitmapFonts element must contain at least one BitmapFont inner element.
BitmapFont
Specifies a particular user-defined bitmap font.
Attributes
name- The name of the user-defined font family.
Inner elements
Each inner element of a BitmapFont element must be either a Character
element or a Word element. Both of these inner elements contain the following
attributes:
name- The character or word itself.
resource- A resource ID corresponding to where the character or word is defined.
width- The width of the character or word, in pixels.
height- The height of the character or word, in pixels.
Recommended for you
- Note: link text is displayed when JavaScript is off
- Using Classes and Objects in Kotlin
- Kotlin Bootcamp for Programmers 4: Object-oriented programming
- Introduction to Compose for TV