[]Font.defaultFont设置默认字体无效
1、类库版本:1.7.13Beta
2、设置全局默认字体为黑体时无效
测试代码:
Laya.Font.defaultFont = "SimHei"
Laya.init(600, 1200, WebGL);
var txtName = new laya.display.Text();
txtName.fontSize = 20;
txtName.color = "#ffffff";
txtName.align = "center";
txtName.stroke = 2;
txtName.text = "设置全局字体无效";
Laya.stage.addChild(txtName);
2、设置全局默认字体为黑体时无效
测试代码:
Laya.Font.defaultFont = "SimHei"
Laya.init(600, 1200, WebGL);
var txtName = new laya.display.Text();
txtName.fontSize = 20;
txtName.color = "#ffffff";
txtName.align = "center";
txtName.stroke = 2;
txtName.text = "设置全局字体无效";
Laya.stage.addChild(txtName);
没有找到相关结果
已邀请:
1 个回复
Monica - 知识达人
赞同来自: