We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32029bc commit 8ad561aCopy full SHA for 8ad561a
src/handlers/canvasToBlob.ts
@@ -93,7 +93,7 @@ class canvasToBlobHandler implements FormatHandler {
93
94
this.#ctx.font = font;
95
this.#canvas.width = this.#ctx.measureText(string).width;
96
- this.#canvas.height = fontSize;
+ this.#canvas.height = Math.floor(fontSize * 1.5);
97
98
if (outputFormat.mime === "image/jpeg") {
99
this.#ctx.fillStyle = "white";
0 commit comments