mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +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.drawImage(plate, 0, height + 1);
|
||||||
ctx.font = '77px Futura';
|
ctx.font = '77px Futura';
|
||||||
let fontSize = 77;
|
let fontSize = 77;
|
||||||
while (ctx.measureText(text).width > 310) {
|
while (ctx.measureText(skill).width > 310) {
|
||||||
fontSize -= 1;
|
fontSize -= 1;
|
||||||
ctx.font = `${fontSize}px Futura`;
|
ctx.font = `${fontSize}px Futura`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user