Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/type/p5.Font.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,10 @@ export class Font {
const extrude = options?.extrude || 0;

let contours = this.textToContours(str, x, y, width, height, options);
if (!contours || contours.length === 0) {
return new p5.Geometry();
}

// Step 2: build base flat geometry - single shape
const geom = this._pInst.buildGeometry(() => {
const prevValidateFaces = this._pInst._renderer._validateFaces;
Expand Down
Loading