Commit 31c830c7 by doszhang

dos

parent b3e7272a
......@@ -939,7 +939,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(content).width);
alert(pxToRem(161 * 2));
alert(pxToRem(367 * 2));
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