BitmapFonts

存放使用者定義點陣圖字型的容器。

這項元素已在 Wear OS 4 推出。

語法

<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>

內部元素

BitmapFonts 元素必須包含至少一個 BitmapFont 內部元素。

BitmapFont

指定使用者定義的特定點陣圖字型。

屬性

name
使用者定義的字型系列名稱。

內部元素

BitmapFont 元素的每個內部元素都必須是 Character 元素或 Word 元素。這兩種內部元素都包含下列屬性:

name
字元或字詞本身。
resource
與定義字元或字詞該位置相對應的資源 ID。
width
字元或字詞的寬度,以像素為單位。
height
字元或字詞的高度,以像素為單位。

目前沒有任何建議。

建議 Google 帳戶。