add DINPro.ttf font example.
This commit is contained in:
parent
f7daebfd77
commit
4903e1d31a
@ -210,7 +210,6 @@ class TextDemo extends Panel {
|
||||
text({
|
||||
text: "Font from custom loader.",
|
||||
textSize: 10,
|
||||
font: 'Hanabi'
|
||||
}),
|
||||
text({
|
||||
text: "Font from custom loader.",
|
||||
@ -218,6 +217,16 @@ class TextDemo extends Panel {
|
||||
textColor: Color.BLUE,
|
||||
font: new AssetsResource('Hanabi.ttf')
|
||||
}),
|
||||
text({
|
||||
text: "Font from custom loader.",
|
||||
textSize: 10,
|
||||
}),
|
||||
text({
|
||||
text: "Font from custom loader.",
|
||||
textSize: 30,
|
||||
textColor: Color.BLUE,
|
||||
font: new AssetsResource('DINPro.ttf')
|
||||
}),
|
||||
text({
|
||||
text: "This is line Spaceing 0,\nSecond line",
|
||||
maxLines: 0,
|
||||
|
Reference in New Issue
Block a user