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
- 字元或字詞的高度,以像素為單位。
為您推薦
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2023-08-04 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]