Commit ddc1705e by doszhang

dos

parent 4bb1a4af
...@@ -351,7 +351,7 @@ function calculationWrap() { ...@@ -351,7 +351,7 @@ function calculationWrap() {
for (let i = 8; i < 20; i++) { for (let i = 8; i < 20; i++) {
let textWidth = posterCtx.measureText(content).width; let textWidth = posterCtx.measureText(content).width;
if (textWidth > redLineWidth) { if (textWidth > redLineWidth) {
return i; return i - 2;
} else { } else {
content += '啊'; content += '啊';
} }
......
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