mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 21:44:48 +02:00
Fix
This commit is contained in:
@@ -53,7 +53,7 @@ module.exports = class EddFactsBookCommand extends Command {
|
|||||||
ctx.rotate(-15 * (Math.PI / 180));
|
ctx.rotate(-15 * (Math.PI / 180));
|
||||||
ctx.font = '30px Noto';
|
ctx.font = '30px Noto';
|
||||||
let fontSize = 30;
|
let fontSize = 30;
|
||||||
while (ctx.measureText(first).width > 549) {
|
while (ctx.measureText(fact).width > 549) {
|
||||||
fontSize -= 1;
|
fontSize -= 1;
|
||||||
ctx.font = `${fontSize}px Noto`;
|
ctx.font = `${fontSize}px Noto`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user