Skip to content

Commit

Permalink
SDF: Fix infinite layout loop
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-weindel committed Mar 29, 2024
1 parent f38273b commit 2b971d6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ export function layoutText(
);
curX = lastWord.xStart;
bufferOffset = lastWord.bufferOffset;
// HACK: For the rest of the line when inserting the overflow suffix,
// set contain = 'none' to prevent an infinite loop.
contain = 'none';
}
} else {
// This glyph fits, so we can add it to the buffer
Expand Down

0 comments on commit 2b971d6

Please sign in to comment.