diff --git a/site/freelens-logo/script.js b/site/freelens-logo/script.js index 0404e63..7be5111 100644 --- a/site/freelens-logo/script.js +++ b/site/freelens-logo/script.js @@ -43,6 +43,7 @@ const availableWidth = width - PADDING * 2; const availableHeight = height - PADDING * 2; const halfHeight = availableHeight / 2; + const threeQuartersHeight = availableHeight * 3 / 4; ctx.fillStyle = 'white'; ctx.textAlign = 'center'; @@ -57,7 +58,7 @@ ctx.font = `bold ${fontSize}px sans-serif`; ctx.fillText(lower, width / 2, height - PADDING - halfHeight / 2 + 4); } else { - let fontSize = fitText(upper, availableWidth, halfHeight); + let fontSize = fitText(upper, availableWidth, threeQuartersHeight); ctx.font = `bold ${fontSize}px sans-serif`; ctx.fillText(upper, width / 2, height / 2); }