This commit is contained in:
Dragon Fire
2020-07-12 09:40:48 -04:00
parent 7bffbe1c5c
commit 6d9fea9d51
+1 -1
View File
@@ -61,7 +61,7 @@ module.exports = class ThatSignWontStopMeCommand extends Command {
ctx.font = `${fontSize}px Tragic Marker`;
}
const lines = await wrapText(ctx, text, 334);
const topMost = 220 - (((fontSize * lines.length) / 2) + ((10 * (lines.length - 1)) / 2));
const topMost = 230 - (((fontSize * lines.length) / 2) + ((10 * (lines.length - 1)) / 2));
for (let i = 0; i < lines.length; i++) {
const height = topMost + ((fontSize + 10) * i);
ctx.fillText(lines[i], 210, height);