mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Fix
This commit is contained in:
@@ -66,8 +66,9 @@ module.exports = class MemeGenModernCommand extends Command {
|
|||||||
const linesLen = (40 * lines.length)
|
const linesLen = (40 * lines.length)
|
||||||
+ (40 * (lineBreakLen - 1))
|
+ (40 * (lineBreakLen - 1))
|
||||||
+ (14 * lines.length)
|
+ (14 * lines.length)
|
||||||
+ (14 * (lineBreakLen - 1));
|
+ (14 * (lineBreakLen - 1))
|
||||||
canvas.height += linesLen + 14;
|
+ 14;
|
||||||
|
canvas.height += linesLen;
|
||||||
ctx.font = '40px Noto';
|
ctx.font = '40px Noto';
|
||||||
ctx.textBaseline = 'top';
|
ctx.textBaseline = 'top';
|
||||||
ctx.fillStyle = 'white';
|
ctx.fillStyle = 'white';
|
||||||
|
|||||||
Reference in New Issue
Block a user