Skip to content

Commit

Permalink
can lower, upper latin char same time.
Browse files Browse the repository at this point in the history
fixed: lower, upper latin char same time.
fixed: duplicate unicode error (ttf2svg > svg2ttfobject)
  • Loading branch information
myso-kr authored and kekee000 committed May 17, 2021
1 parent 9e43033 commit 2dc5b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ttf/util/unicode2xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function unicode2xml(unicodeList) {
return '';
}
return u >= 0x20 && u <= 255
? string.encodeHTML(String.fromCharCode(u).toLowerCase())
? string.encodeHTML(String.fromCharCode(u))
: '&#x' + u.toString(16) + ';';
}).join('');
}

0 comments on commit 2dc5b7a

Please sign in to comment.