Commit 400feed9 by doszhang

dos

parent dd061cd1
......@@ -938,7 +938,7 @@ function flagNoDraw(ctx, content, fontsize, color, x, y) {
function flagTextDraw(ctx, content, fontsize, color, x, y, font = "normal") {
let length = calculateStringLength(content);
alert(ctx.measureText(txt).width)
alert(ctx.measureText(content).width)
let lineTop = 0;
if (length <= 24) {
ctx.font = fontsize + 'px ' + font;
......
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