private createText(font: string): void {
var txt: Text = new Text();
txt.width = 250;
txt.wordWrap = true;
txt.text = "测试文本";
txt.font = font;
txt.leading = 5;
txt.pos(Laya.stage.width - txt.width >> 1, Laya.stage.height - txt.height >> 1);
txt.alpha = 0.1;
Laya.stage.addChild(txt);
}
我这测试是可以的