From acf2aca52d3f9b1ebc6a3ba4d4565107c7803ffd Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 2 Mar 2019 19:36:55 +0100 Subject: [PATCH] Updated font size --- commands/images/nolight.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/images/nolight.js b/commands/images/nolight.js index 9e566cba..2d9b82c4 100644 --- a/commands/images/nolight.js +++ b/commands/images/nolight.js @@ -38,9 +38,9 @@ class nolightCommand extends Command { }); const bg = await loadImage(buffer); ctx.drawImage(bg, 0, 0, canvas.width, canvas.height); - ctx.font = '70px ubuntu'; + ctx.font = '15px ubuntu'; ctx.fillStyle = '#FFFFFF'; - ctx.fillText(text, canvas.width / 10, canvas.height / 9); + ctx.fillText(text, 10, 20); fs.writeFile('./img/frame001.png', canvas.toBuffer(), function (err) { if (err) { @@ -62,4 +62,4 @@ class nolightCommand extends Command { } } -module.exports = nolightCommand; \ No newline at end of file +module.exports = nolightCommand;