Commit 21c02ca4 by doszhang

dos

parent e608c7ec
......@@ -874,9 +874,15 @@ function flagTextDraw(ctx, content, fontsize, color, x, y) {
ctx.fillText(content, x, y);
} else {
let lineArr = [];
let lineNo = 0;
for (let i = 0; i < content.length; i += 14) {
lineArr.push(content.substr(i, 14));
}
for (let i = 0; i < lineArr.length; i++) {
ctx.font = fontsize + 'px normal';
ctx.fillStyle = color;
ctx.fillText(lineArr[i], x, y + fontsize + 10);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment