diff --git a/doric-demo/src/TextDemo.ts b/doric-demo/src/TextDemo.ts index 0f384738..b3c1df4e 100644 --- a/doric-demo/src/TextDemo.ts +++ b/doric-demo/src/TextDemo.ts @@ -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,