Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unicode support for BitmapFontManager #10514

Merged
merged 2 commits into from May 14, 2024
Merged

fix: unicode support for BitmapFontManager #10514

merged 2 commits into from May 14, 2024

Conversation

azotov-box
Copy link
Contributor

Description of change

BitmapFontManager.getLayout fails when called with text containing unicode characters due to String.split('') splitting multichar unicode characters, e.g. '👍'.split('') === ['\uD83D', '\uDC4D']. The spread operator on the other hand respects unicode.

Pre-Merge Checklist
  • Tests and/or benchmarks are included
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

Copy link

codesandbox-ci bot commented May 7, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 85f9eed:

Sandbox Source
pixi.js-sandbox Configuration

@bigtimebuddy bigtimebuddy added the ✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t label May 7, 2024
@Zyie Zyie added the v8 label May 14, 2024
@Zyie Zyie added this pull request to the merge queue May 14, 2024
Merged via the queue into pixijs:dev with commit c93f7be May 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t v8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants