Litle fix

This commit is contained in:
Mr-KayJayDee
2021-01-18 20:05:31 +01:00
parent 4be539163d
commit eae55b6eb4

View File

@@ -8,7 +8,7 @@ module.exports = {
* @param {number} width the default width * @param {number} width the default width
* @param {string} font the font * @param {string} font the font
*/ */
applyText(canvas, text, defaultFontSize, width, font){ applyText(canvas, text, defaultFontSize, width, font) {
const ctx = canvas.getContext(`2d`); const ctx = canvas.getContext(`2d`);
do { do {
ctx.font = `${(defaultFontSize -= 1)}px ${font}`; ctx.font = `${(defaultFontSize -= 1)}px ${font}`;