mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Fix
This commit is contained in:
@@ -70,7 +70,7 @@ module.exports = class TweetCommand extends Command {
|
|||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
ctx.font = this.client.fonts.get('ChirpRegular.ttf').toCanvasString(23);
|
ctx.font = this.client.fonts.get('ChirpRegular.ttf').toCanvasString(23);
|
||||||
const lines = await wrapText(ctx, text, 710);
|
const lines = await wrapText(ctx, text, 710);
|
||||||
const linesLen = (23 * lines.length) + (9 * (lines.length - 1)) + 15;
|
const linesLen = (23 * lines.length) + (7 * (lines.length - 1)) + 15;
|
||||||
canvas.height += linesLen;
|
canvas.height += linesLen;
|
||||||
let imageHeight = 0;
|
let imageHeight = 0;
|
||||||
ctx.fillStyle = 'black';
|
ctx.fillStyle = 'black';
|
||||||
|
|||||||
Reference in New Issue
Block a user