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

CJK characters cause cursor position to be incorrect in Safari 7 #1881

Closed
jmcphers opened this issue Mar 26, 2014 · 1 comment
Closed

CJK characters cause cursor position to be incorrect in Safari 7 #1881

jmcphers opened this issue Mar 26, 2014 · 1 comment

Comments

@jmcphers
Copy link
Contributor

When a line contains CJK characters, the cursor position after the characters is wrong in Safari 7. Here's an example: after four CJK characters, the cursor blinks in the middle of the M instead of to its left:

image

The problem appears to be that in Safari, monospace font pixel widths can be fractional. The ace_cjk characters have widths applied that attempt to make them exactly twice as wide as regular characters:

image

However, it appears that Safari is rounding these widths down to 14px, and the 0.42px error accumulates over the line and eventually causes the cursor position to be significantly off.

(all screenshots are from the Ace Kitchen Sink)

@nightwing
Copy link
Member

Merging this issue into #460

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

No branches or pull requests

2 participants