Skip to content

Commit

Permalink
Merge pull request #7109 from processing/davepagurek-patch-1
Browse files Browse the repository at this point in the history
Fix clipped multiline font rendering
  • Loading branch information
Qianqianye authored Jun 28, 2024
2 parents 4aa8adc + 040d406 commit fd4a544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typography/p5.Font.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit fd4a544

Please sign in to comment.