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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character positioning/cursor movement breaks with certain emoji characters #6307

Closed
postcasio opened this Issue Apr 8, 2015 · 2 comments

Comments

Projects
None yet
4 participants
@postcasio
Contributor

postcasio commented Apr 8, 2015

Atom 0.190.0, OS X 10.10
Enter some random emoji, such as 馃寠馃憖馃槍, then add 鈸傦笍 to the end, the preceding characters move and overlap and the cursor position gets weird.

emoji

Seems to only happen with 鈸傦笍, but I haven't tried everything.

I think it's something to do with variation selectors. When you enter 鈸傦笍 using the OS X emoji palette, it encodes as e2 93 82 ef b8 8f, or CIRCLED LATIN CAPITAL LETTER M followed by VARIATION SELECTOR 16. If you copy and paste just CIRCLED LATIN CAPITAL LETTER M it works fine.

@as-cii

This comment has been minimized.

Show comment
Hide comment
@as-cii

as-cii Apr 9, 2015

Member

@postcasio: I have tried to reproduce it outside Atom through this HTML file.

<html><body>鈸傦笍馃憡馃寠馃嚠馃嚬</body></html>

It turns out that emojis are displayed nicely on Safari, whereas they get messed up on Chrome 41.

Safari Chrome
screen shot 2015-04-09 at 15 35 48 screen shot 2015-04-09 at 15 34 25

Our character measurement/positioning system contributes to make things worse, but that's not the cause and, although we need to address it soon anyway, I think this is something that should probably be fixed at a lower layer (https://code.google.com/p/chromium/issues/detail?id=473703).

Maybe we should move this issue elsewhere? 馃挱

/cc: @kevinsawicki @nathansobo

Member

as-cii commented Apr 9, 2015

@postcasio: I have tried to reproduce it outside Atom through this HTML file.

<html><body>鈸傦笍馃憡馃寠馃嚠馃嚬</body></html>

It turns out that emojis are displayed nicely on Safari, whereas they get messed up on Chrome 41.

Safari Chrome
screen shot 2015-04-09 at 15 35 48 screen shot 2015-04-09 at 15 34 25

Our character measurement/positioning system contributes to make things worse, but that's not the cause and, although we need to address it soon anyway, I think this is something that should probably be fixed at a lower layer (https://code.google.com/p/chromium/issues/detail?id=473703).

Maybe we should move this issue elsewhere? 馃挱

/cc: @kevinsawicki @nathansobo

@kevinsawicki kevinsawicki removed the atom label Apr 13, 2015

@benogle

This comment has been minimized.

Show comment
Hide comment
@benogle

benogle Oct 26, 2015

Contributor

This is fixed on master via #8811

Contributor

benogle commented Oct 26, 2015

This is fixed on master via #8811

@benogle benogle closed this Oct 26, 2015

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