From 4903e1d31aec0829719cddd35a6e06dafe9f693b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B0=9A=E6=98=86?= Date: Thu, 3 Mar 2022 15:34:47 +0800 Subject: [PATCH] add DINPro.ttf font example. --- doric-demo/src/TextDemo.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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,