mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
start a little smaller
This commit is contained in:
@@ -56,9 +56,9 @@ module.exports = class GruPlanCommand extends Command {
|
|||||||
ctx.textBaseline = 'top';
|
ctx.textBaseline = 'top';
|
||||||
let i = 0;
|
let i = 0;
|
||||||
for (const [x, y] of coord) {
|
for (const [x, y] of coord) {
|
||||||
ctx.font = '40px Noto';
|
ctx.font = '35px Noto';
|
||||||
const step = steps[i];
|
const step = steps[i];
|
||||||
let fontSize = 40;
|
let fontSize = 35;
|
||||||
while (ctx.measureText(step).width > 1100) {
|
while (ctx.measureText(step).width > 1100) {
|
||||||
fontSize -= 1;
|
fontSize -= 1;
|
||||||
ctx.font = `${fontSize}px Noto`;
|
ctx.font = `${fontSize}px Noto`;
|
||||||
|
|||||||
Reference in New Issue
Block a user