Commit 0a46f47a by doszhang

dos

parent 8e842c8f
...@@ -855,7 +855,7 @@ function pxToRem(px) { ...@@ -855,7 +855,7 @@ function pxToRem(px) {
function flagNoDraw(ctx, content, fontsize, fontweight, color, x, y) { function flagNoDraw(ctx, content, fontsize, fontweight, color, x, y) {
fontsize = fontsize * 2; fontsize = fontsize * 2;
ctx.font = fontweight + ' ' + fontsize + 'px'; ctx.font = fontweight + ' ' + 100 + 'px';
console.log(fontsize); console.log(fontsize);
var width = ctx.measureText(content).width; var width = ctx.measureText(content).width;
......
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