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

Multiline emoji line wrap is not correct #1099

Closed
SergeyMell opened this issue Apr 21, 2021 · 2 comments
Closed

Multiline emoji line wrap is not correct #1099

SergeyMell opened this issue Apr 21, 2021 · 2 comments
Labels

Comments

@SergeyMell
Copy link

SergeyMell commented Apr 21, 2021

It seems that Konva has issues with multiline emoji rendering in different browsers

  1. On Chrome it breaks the emoji in the middle so it becomes two unreadable symbols
    chrome

  2. On Safari it doesn't add line break unless emoji has some preceding symbol
    safari

You can easily reproduce it from this example
https://jsbin.com/zuvivivuhe/edit?html,js,output

Or even in the sandbox https://konvajs.org/docs/sandbox/Editable_Text.html if you insert some long line of emojis

Looking forward to getting some solution

@denis-mnml
Copy link

I have the same problem. line.slice(0, mid + 1) doesn't work well with emoji

@lavrton
Copy link
Member

lavrton commented Dec 23, 2024

It should be fixed in the last version.

@lavrton lavrton closed this as completed Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants