mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
Fix
This commit is contained in:
@@ -51,7 +51,7 @@ module.exports = class CautionCommand extends Command {
|
||||
ctx.textBaseline = 'top';
|
||||
ctx.font = 'normal bold 60px Noto';
|
||||
let fontSize = 60;
|
||||
while (ctx.measureText(text).width > 3580) {
|
||||
while (ctx.measureText(text).width > 3311) {
|
||||
fontSize--;
|
||||
ctx.font = `normal bold ${fontSize}px Noto`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user