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

getCJKAdjustedLength is miscalculating for supplementary code points #1615

Closed
gwalbran opened this issue Feb 27, 2022 · 0 comments · Fixed by #1616
Closed

getCJKAdjustedLength is miscalculating for supplementary code points #1615

gwalbran opened this issue Feb 27, 2022 · 0 comments · Fixed by #1616
Milestone

Comments

@gwalbran
Copy link
Contributor

getCJKAdjustedLength() calculates the column width of text and adjusts for CJK values that may be double widths.

But this method is miscalculating for supplementary code points line "𝑓". In this case the method is returning 2 rather than the expected 1.

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

Successfully merging a pull request may close this issue.

2 participants