From 8a8947d4ab1042d5b3825c0c9058f1f53397780b Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Wed, 25 Nov 2020 23:03:07 +0100 Subject: [PATCH] #113 [nouns] dictionary cards / images - move lower --- server/routes/nouns.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/routes/nouns.js b/server/routes/nouns.js index fd7c042b2..e65eb6839 100644 --- a/server/routes/nouns.js +++ b/server/routes/nouns.js @@ -160,14 +160,14 @@ router.get('/nouns/:word.png', async (req, res) => { context.fillStyle = '#000'; context.font = 'bold 64pt Quicksand'; - context.fillText(base, width / 2 - context.measureText(base).width / 2, 100); + context.fillText(base, width / 2 - context.measureText(base).width / 2, 120); for (let [column, key, icon] of [[0, 'masculine', '\uf222'], [1, 'feminine', '\uf221'], [2, 'neuter', '\uf22c']]) { context.font = 'regular 24pt FontAwesome'; - context.fillText(icon, column * (width - 2 * padding) / 3 + padding, 172); + context.fillText(icon, column * (width - 2 * padding) / 3 + padding, 192); context.font = 'bold 24pt Quicksand'; - context.fillText(translations.nouns[key], column * (width - 2 * padding) / 3 + padding + 36, 172); + context.fillText(translations.nouns[key], column * (width - 2 * padding) / 3 + padding + 36, 192); } context.font = 'regular 24pt Quicksand'; @@ -175,7 +175,7 @@ router.get('/nouns/:word.png', async (req, res) => { let i = 0; for (let [key, symbol] of [['', '⋅'], ['Pl', '⁖']]) noun[form + key].split('|').forEach(part => { - context.fillText(symbol + ' ' + part, column * (width - 2 * padding) / 3 + padding, 224 + i * 48); + context.fillText(symbol + ' ' + part, column * (width - 2 * padding) / 3 + padding, 244 + i * 48); i++; }); })