From 7b344ee248fba2a0f2400b6498985a7a9051b9fb Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 25 Nov 2018 23:56:16 +0100 Subject: [PATCH] use ubuntu font --- commands/images/idubbbz.js | 2 +- commands/images/idubbbzpaint.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/images/idubbbz.js b/commands/images/idubbbz.js index 6e56874b..358f225f 100644 --- a/commands/images/idubbbz.js +++ b/commands/images/idubbbz.js @@ -46,7 +46,7 @@ module.exports = class idubbbzCommand extends Command { do { // Assign the font to the context and decrement it so it can be measured again - ctx.font = `${fontSize -= 10}px sans-serif`; + ctx.font = `${fontSize -= 10}px ubuntu`; } while (ctx.measureText(text).width > 700 - 300); // Return the result to use in the actual canvas diff --git a/commands/images/idubbbzpaint.js b/commands/images/idubbbzpaint.js index a1d4cb85..a3b75f94 100644 --- a/commands/images/idubbbzpaint.js +++ b/commands/images/idubbbzpaint.js @@ -46,7 +46,7 @@ module.exports = class idubbbzpaintCommand extends Command { do { // Assign the font to the context and decrement it so it can be measured again - ctx.font = `${fontSize -= 10}px sans-serif`; + ctx.font = `${fontSize -= 10}px ubuntu`; } while (ctx.measureText(text).width > 800 - 300); // Return the result to use in the actual canvas