From 0de35ee7e9a7693023931426c66756529046b3ed Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 21 Apr 2024 13:49:51 -0400 Subject: [PATCH] Make views bold --- commands/edit-image-text/tweet.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/edit-image-text/tweet.js b/commands/edit-image-text/tweet.js index 34f69476..7e4bc49b 100644 --- a/commands/edit-image-text/tweet.js +++ b/commands/edit-image-text/tweet.js @@ -104,9 +104,11 @@ module.exports = class TweetCommand extends Command { ctx.fillText(time, 18, base2StartY + 12); const timeLen = ctx.measureText(time).width; ctx.fillStyle = 'white'; + ctx.font = this.client.fonts.get('Noto-Bold.ttf').toCanvasString(18); ctx.fillText(formatNumberK(views), 18 + timeLen + 6, base2StartY + 12); const viewsLen = ctx.measureText(formatNumberK(views)).width; ctx.fillStyle = '#71767b'; + ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(18); ctx.fillText('Views', 18 + timeLen + 6 + viewsLen + 6, base2StartY + 12); ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(16); ctx.fillText(formatNumberK(replies), 64, base2StartY + 145);