mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 05:51:42 +02:00
Fix
This commit is contained in:
@@ -69,7 +69,7 @@ module.exports = class PlanktonPlanCommand extends Command {
|
|||||||
ctx.font = '35px Noto';
|
ctx.font = '35px Noto';
|
||||||
const step = steps[i];
|
const step = steps[i];
|
||||||
let fontSize = 35;
|
let fontSize = 35;
|
||||||
while (ctx.measureText(step).width > 720) {
|
while (ctx.measureText(step).width > 620) {
|
||||||
fontSize -= 1;
|
fontSize -= 1;
|
||||||
ctx.font = `${fontSize}px Noto`;
|
ctx.font = `${fontSize}px Noto`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user