From 3009b0e3ce84ecd5a54e88f2bc214508095b54f8 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 21 Apr 2024 14:05:06 -0400 Subject: [PATCH] Use noto for numbers --- commands/edit-image-text/tweet.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/edit-image-text/tweet.js b/commands/edit-image-text/tweet.js index b38561ee..768c5724 100644 --- a/commands/edit-image-text/tweet.js +++ b/commands/edit-image-text/tweet.js @@ -100,7 +100,7 @@ module.exports = class TweetCommand extends Command { ctx.fillText(lines.join('\n'), 17, 160); ctx.fillStyle = '#71767b'; ctx.font = this.client.fonts.get('ChirpRegular.ttf').toCanvasString(18); - const time = moment().format('h:mm A ∙ MMMM D, YYYY ∙'); + const time = moment().format('h:mm A ∙ MMM D, YYYY ∙'); ctx.fillText(time, 18, base2StartY + 12); const timeLen = ctx.measureText(time).width; ctx.fillStyle = 'white'; @@ -110,14 +110,14 @@ module.exports = class TweetCommand extends Command { ctx.fillStyle = '#71767b'; ctx.font = this.client.fonts.get('ChirpRegular.ttf').toCanvasString(18); ctx.fillText('Views', 18 + timeLen + 6 + viewsLen + 6, base2StartY + 12); - ctx.font = this.client.fonts.get('ChirpRegular.ttf').toCanvasString(16); + ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(16); ctx.fillText(formatNumberK(replies), 64, base2StartY + 145); ctx.fillText(formatNumberK(likes), 415, base2StartY + 145); ctx.fillText(formatNumberK(retweets + quotTweets), 242, base2StartY + 145); ctx.fillText(formatNumberK(bookmarks), 588, base2StartY + 145); let currentLen = 17; ctx.fillStyle = 'white'; - ctx.font = this.client.fonts.get('ChirpBold.ttf').toCanvasString(18); + ctx.font = this.client.fonts.get('Noto-Bold.ttf').toCanvasString(18); ctx.fillText(formatNumberK(retweets), currentLen, base2StartY + 75); currentLen += ctx.measureText(formatNumberK(retweets)).width; currentLen += 5; @@ -127,7 +127,7 @@ module.exports = class TweetCommand extends Command { currentLen += ctx.measureText('Reposts').width; currentLen += 10; ctx.fillStyle = 'white'; - ctx.font = this.client.fonts.get('ChirpBold.ttf').toCanvasString(18); + ctx.font = this.client.fonts.get('Noto-Bold.ttf').toCanvasString(18); ctx.fillText(formatNumberK(quotTweets), currentLen, base2StartY + 75); currentLen += ctx.measureText(formatNumberK(quotTweets)).width; currentLen += 5; @@ -137,7 +137,7 @@ module.exports = class TweetCommand extends Command { currentLen += ctx.measureText('Quotes').width; currentLen += 10; ctx.fillStyle = 'white'; - ctx.font = this.client.fonts.get('ChirpBold.ttf').toCanvasString(18); + ctx.font = this.client.fonts.get('Noto-Bold.ttf').toCanvasString(18); ctx.fillText(formatNumberK(likes), currentLen, base2StartY + 75); currentLen += ctx.measureText(formatNumberK(likes)).width; currentLen += 5; @@ -147,7 +147,7 @@ module.exports = class TweetCommand extends Command { currentLen += ctx.measureText('Likes').width; currentLen += 10; ctx.fillStyle = 'white'; - ctx.font = this.client.fonts.get('ChirpBold.ttf').toCanvasString(18); + ctx.font = this.client.fonts.get('Noto-Bold.ttf').toCanvasString(18); ctx.fillText(formatNumberK(bookmarks), currentLen, base2StartY + 75); currentLen += ctx.measureText(formatNumberK(bookmarks)).width; currentLen += 5;