Skip to content

Commit

Permalink
feat: Find glyphs for each codepoint from the font
Browse files Browse the repository at this point in the history
Signed-off-by: Naoki Ikeguchi <[email protected]>
  • Loading branch information
siketyan committed May 1, 2024
1 parent ee126d6 commit 8df6811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/layout/src/text/fontSubstitution.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const fontSubstitution =
break;
}

const chars = string.slice(run.start, run.end);
const chars = [...string.slice(run.start, run.end)];

for (let j = 0; j < chars.length; j += 1) {
const char = chars[j];
Expand Down

0 comments on commit 8df6811

Please sign in to comment.