diff --git a/README.md b/README.md index cd201aa2..4819e57e 100644 --- a/README.md +++ b/README.md @@ -637,7 +637,6 @@ here. * steam-now-playing ([Noto Font](https://www.google.com/get/noto/)) * calendar ([Calendar API](https://developers.google.com/calendar/)) * google-doodle ([Google Doodles API](https://www.google.com/doodles)) - * be-like-bill ([Noto Font](https://www.google.com/get/noto/)) * dear-liberals ([Oswald Font](https://fonts.google.com/specimen/Oswald)) * demotivational ([Noto Font](https://www.google.com/get/noto/)) * gru-plan ([Noto Font](https://www.google.com/get/noto/)) @@ -771,6 +770,8 @@ here. - [Mojang](https://www.mojang.com/) * achievement ([Original "Minecraft" Game](https://www.minecraft.net/en-us/)) * minecraft-skin ([API, Original "Minecraft" Game](https://wiki.vg/Mojang_API)) +- [Monotype](https://www.monotype.com/) + * be-like-bill ([Arial Font](https://catalog.monotype.com/family/monotype/arial)) - [Monty Hall problem](https://en.wikipedia.org/wiki/Monty_Hall_problem) * doors (Concept) - [MotivaShian](https://www.youtube.com/channel/UC0yDCpC_UaXEdL6Zc4715rg) diff --git a/assets/fonts/arialbd.ttf b/assets/fonts/arialbd.ttf new file mode 100644 index 00000000..a6037e68 Binary files /dev/null and b/assets/fonts/arialbd.ttf differ diff --git a/commands/meme-gen/be-like-bill.js b/commands/meme-gen/be-like-bill.js index 0011728e..1cfe2364 100644 --- a/commands/meme-gen/be-like-bill.js +++ b/commands/meme-gen/be-like-bill.js @@ -4,9 +4,7 @@ const { stripIndents } = require('common-tags'); const path = require('path'); const { wrapText } = require('../../util/Canvas'); const texts = require('../../assets/json/be-like-bill'); -registerFont(path.join(__dirname, '..', '..', 'assets', 'fonts', 'Noto-Regular.ttf'), { family: 'Noto' }); -registerFont(path.join(__dirname, '..', '..', 'assets', 'fonts', 'Noto-CJK.otf'), { family: 'Noto' }); -registerFont(path.join(__dirname, '..', '..', 'assets', 'fonts', 'Noto-Emoji.ttf'), { family: 'Noto' }); +registerFont(path.join(__dirname, '..', '..', 'assets', 'fonts', 'arialbd.ttf'), { family: 'Arial' }); module.exports = class BeLikeBillCommand extends Command { constructor(client) { @@ -29,10 +27,10 @@ module.exports = class BeLikeBillCommand extends Command { reasonURL: 'https://github.com/gautamkrishnar/Be-Like-Bill' }, { - name: 'Google', - url: 'https://www.google.com/', - reason: 'Noto Font', - reasonURL: 'https://www.google.com/get/noto/' + name: 'Monotype', + url: 'https://www.monotype.com/', + reason: 'Arial Font', + reasonURL: 'https://catalog.monotype.com/family/monotype/arial' } ], args: [ @@ -52,7 +50,7 @@ module.exports = class BeLikeBillCommand extends Command { const canvas = createCanvas(base.width, base.height); const ctx = canvas.getContext('2d'); ctx.drawImage(base, 0, 0); - ctx.font = '23px Noto'; + ctx.font = '23px Arial Bold'; const text = await wrapText(ctx, texts[Math.floor(Math.random() * texts.length)].replace(/{{name}}/gi, name), 569); ctx.fillText(stripIndents` This is ${name}. @@ -65,4 +63,3 @@ module.exports = class BeLikeBillCommand extends Command { return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'be-like-bill.png' }] }); } }; - diff --git a/package.json b/package.json index 10854d6a..97e31f34 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "110.1.0", + "version": "110.1.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {