From 3e6f45abbeaba7a9b99641e2d77af521884d14a0 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 3 May 2024 00:59:17 -0400 Subject: [PATCH] Font spacing in wild pokemon --- commands/edit-image/wild-pokemon.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/edit-image/wild-pokemon.js b/commands/edit-image/wild-pokemon.js index a503d91f..79f24804 100644 --- a/commands/edit-image/wild-pokemon.js +++ b/commands/edit-image/wild-pokemon.js @@ -56,6 +56,7 @@ module.exports = class WildPokemonCommand extends Command { const { x, y, width, height } = centerImagePart(data, 100, 100, 227, 11); pixelize(ctx, canvas, data, 0.30, x, y, width, height); greyscale(ctx, x, y, width, height); + ctx.letterSpacing = 10; ctx.textBaseline = 'top'; ctx.font = this.client.fonts.get('PokemonGb.ttf').toCanvasString(16); ctx.fillText(name.toUpperCase(), 110, 203, 215);