Skip to content

Caret position wrong with variable font width #1050

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

2 participants

@tobbi
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
Ajax.org B.V. 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
Ajax.org B.V. member

closing as duplicate

@nightwing nightwing closed this Dec 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.