From 040d406ac963427914579a155bf3acda09d40c84 Mon Sep 17 00:00:00 2001 From: Dave Pagurek Date: Thu, 27 Jun 2024 20:38:44 -0400 Subject: [PATCH] Fix clipped multiline font rendering --- src/typography/p5.Font.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typography/p5.Font.js b/src/typography/p5.Font.js index e6dcbc1515..08de6f2920 100644 --- a/src/typography/p5.Font.js +++ b/src/typography/p5.Font.js @@ -532,7 +532,7 @@ p5.Font = class { pdata = this._getPath(line, x, y, options).commands; } - ctx.beginPath(); + if (!pg._clipping) ctx.beginPath(); for (const cmd of pdata) { if (cmd.type === 'M') {