Skip to content

Charcodepoint - #158

Merged
Pomax merged 2 commits into
mainfrom
charcodepoint
Jul 10, 2026
Merged

Pomax merged 2 commits into
mainfrom
charcodepoint

Conversation

@RoelN

@RoelN RoelN commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Fixes #157

Also! During testing the HurfBust font (https://behdad.github.io/harfbust/) saved my ass, as its name table contains emoji and tripped up name table parsing even after the fromCodePoint changes. So we use TextDecoder again to parse those as UTF-16BE.

Also, not all changes were absolutely necessary to change to fromCodePoint but I did so anyway so we'd use one single approach everywhere.

RoelN added 2 commits July 10, 2026 15:28
Some of the old `charCodeAt`s would be safe, but have been changed for
consistency's sake too
This makes sure we both process weird chars like emoji, and don't need
to resort to manual string concatting
@RoelN
RoelN requested a review from Pomax July 10, 2026 13:35
@Pomax
Pomax merged commit 337284f into main Jul 10, 2026
1 check passed
@Pomax
Pomax deleted the charcodepoint branch July 10, 2026 18:42
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.

Shouldn't we use String.fromCodePoint()?

2 participants