Skip to content

Conversation

MLoughry
Copy link

@MLoughry MLoughry commented Feb 8, 2023

Fixes #361

@MLoughry MLoughry requested a review from tancredi as a code owner February 8, 2023 21:36
@MLoughry MLoughry changed the title Add support for unicode ranges larger than 0xFFF Add support for unicode ranges larger than 0xFFFF Feb 8, 2023
@MLoughry
Copy link
Author

MLoughry commented Feb 9, 2023

@tancredi, would love a review on this one-line fix.

Currently, fantasticon doesn't correctly support code points greater than 0xFFFF, because String.prototype.charCodeAt() only supports UTF-16 code points, whereas String.prototype.codePointAt supports all Unicode code points. This is necessary to reach the private use areas in the ranges U+F0000..U+FFFFD and U+100000..U+10FFFD, which is necessary when creating icon fonts with more than 6400 glyphs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support for unicode codepoints greater than 0xffff

1 participant