Fix height

This commit is contained in:
Dragon Fire
2024-04-26 18:48:34 -04:00
parent 1bea2c1b97
commit 12917d4db7
+2 -2
View File
@@ -214,7 +214,7 @@ module.exports = class TweetCommand extends Command {
const line = wrapped[currentLine];
const lineNoEmoji = line.split(emojiRegex());
const lineEmoji = line.match(emojiRegex());
const height = 23 + 9;
const height = 23 + 5;
if (!lineEmoji) {
ctx.fillText(line, x, y + (height * currentLine));
continue;
@@ -239,7 +239,7 @@ module.exports = class TweetCommand extends Command {
}
fillHashtags(ctx, wrappedText, x, y, emojiSize) {
const height = 23 + 9;
const height = 23 + 5;
let currentLine = 0;
for (const line of wrappedText) {
const words = line.split(' ');