此元素可針對 BitmapFont
的特定例項提供轉譯操作說明,該例項會顯示在文字型元素當中。
這項元素已在 Wear OS 4 推出。
語法
<BitmapFont family="string" size="float" color="argb-color | rgb-color"> <!-- Inner elements consist of text formatting options. Here, "Lower" is used as an example. --> <Lower ... /> </BitmapFont>
屬性
BitmapFont
元素包含下列屬性,分為必要和選用屬性。
必要屬性
必要屬性包括:
family
- 這個字串代表點陣圖字元集的名稱。此名稱應與錶面檔案其他位置定義的獨立
BitmapFont
元素指定的名稱相符。 size
- 這個浮點值可指定點陣圖字型大小。
選用屬性
color
為選用屬性,如果您加入這個屬性,就必須使用 ARGB 格式 (#ff000000
= 不透明黑) 或 RGB 格式 (#000000
= 黑) 指定顏色。
內部元素
BitmapFont
元素可包含下列內部元素: