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

Caret position wrong with variable font width #1050

Closed
tobbi opened this issue Oct 19, 2012 · 2 comments
Closed

Caret position wrong with variable font width #1050

tobbi opened this issue Oct 19, 2012 · 2 comments

Comments

@tobbi
Copy link

tobbi commented Oct 19, 2012

If I have bold text which is slightly wider than normal text, the caret position is off by a few pixels, especially when having a lot of text (because the wrong offsets add up).

@nightwing
Copy link
Member

Most of monospace fonts have same width for bold text.
Ace tests if font supports bold text and adds .ace_nobold class if it doesn't.
You can use that as a workaround until #460 is fixed.
https://github.com/ajaxorg/ace/blob/master/lib/ace/css/editor.css#L346-352

@nightwing
Copy link
Member

closing as duplicate

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