mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
fix
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = class LisaPresentationCommand extends Command {
|
|||||||
ctx.textAlign = 'center';
|
ctx.textAlign = 'center';
|
||||||
ctx.font = '40px Noto';
|
ctx.font = '40px Noto';
|
||||||
let fontSize = 40;
|
let fontSize = 40;
|
||||||
while (ctx.measureText(text).width > 990) {
|
while (ctx.measureText(text).width > 1320) {
|
||||||
fontSize -= 1;
|
fontSize -= 1;
|
||||||
ctx.font = `${fontSize}px Noto`;
|
ctx.font = `${fontSize}px Noto`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user