mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix
This commit is contained in:
@@ -62,7 +62,7 @@ module.exports = class SkyrimSkillCommand extends Command {
|
||||
ctx.drawImage(plate, 0, height + 1);
|
||||
ctx.font = '77px Futura';
|
||||
let fontSize = 77;
|
||||
while (ctx.measureText(text).width > 310) {
|
||||
while (ctx.measureText(skill).width > 310) {
|
||||
fontSize -= 1;
|
||||
ctx.font = `${fontSize}px Futura`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user