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