diff --git a/text_image.js b/text_image.js index cae667d..bde46b2 100644 --- a/text_image.js +++ b/text_image.js @@ -67,6 +67,7 @@ function wrapText(canvas, str){ line = ""; } line += letter; + ctx.fillText(letter, x, y); x+= metric.width; @@ -77,6 +78,7 @@ function wrapText(canvas, str){ } + function resizeCanvas(canvas, str) { let ctx = canvas.getContext('2d')