Skip to content

Commit

Permalink
Merge pull request #92 from Moustachos/glyph_subset
Browse files Browse the repository at this point in the history
Fix unique glyph codes check in getSubsetText
  • Loading branch information
junmer authored Sep 10, 2021
2 parents c9a3ac2 + f792f99 commit 293351e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function getSubsetText(opts) {
// basicText
opts.basicText && (text += basicText);

return getUniqText(text);
return text;
}

/**
Expand All @@ -117,7 +117,7 @@ function getSubsetText(opts) {
* @return {Array} unicodes
*/
function string2unicodes(str) {
return codePoints(str);
return _.uniq(codePoints(str));
}

exports.getFontFolder = getFontFolder;
Expand Down

0 comments on commit 293351e

Please sign in to comment.