Fix: count uniChar and split sentence, remove BigFontSize
This commit is contained in:
@@ -45,6 +45,8 @@ function TypingExamButton(x, y) {
|
||||
|
||||
this.mainText.anchor.set(0, 0.5);
|
||||
this.mainText.x = 100;
|
||||
console.log(this.mainText.width);
|
||||
// this.mainText.width = 100;
|
||||
// this.setMainText("");
|
||||
// this.addIcon("tile_choco");
|
||||
// this.setIconSize(40);
|
||||
@@ -116,7 +118,7 @@ TypingExamButton.prototype.setTypingRecordText = function(record) {
|
||||
}
|
||||
|
||||
TypingExamButton.prototype.makeWritingNameText = function() {
|
||||
var textWidth = 250;
|
||||
var textWidth = 232;
|
||||
|
||||
var style = { };
|
||||
style.boundsAlignH = "left";
|
||||
|
||||
Reference in New Issue
Block a user