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