feat:android TextNode font support load from res

This commit is contained in:
刘涛
2020-05-25 18:08:45 +08:00
committed by osborn
parent 3a9b6c2a85
commit 26d0a38357
4 changed files with 61 additions and 7 deletions

View File

@@ -46,14 +46,35 @@ class TextDemo extends Panel {
fontStyle: "bold_italic"
}),
text({
text: "This is Icon Font text \ue631",
text: "Icon Font text from \ue631 ",
textSize: 10,
font: 'iconfont'
}),
text({
text: "This is Icon Font text \ue631",
text: "Icon Font text from \ue631 ",
textSize: 30,
font: 'iconfont'
}),
text({
text: "Icon Font text from res/font/ \ue631 ",
textSize: 10,
font: 'font_iconfont'
}),
text({
text: "Icon Font text from res/font/ \ue631 ",
textSize: 30,
font: 'font_iconfont.ttf'
}),
text({
text: "Icon Font text from assets/fonts/ \ue631 ",
textSize: 10,
font: 'fonts/assets_iconfont'
}),
text({
text: "Icon Font text from assets/fonts/ \ue631 ",
textSize: 30,
font: 'fonts/assets_iconfont.ttf'
}),
text({
text: "This is line Spaceing 0,\nSecond line",
maxLines: 0,