You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Special variable-width characters break cursor position #132
So @nathansobo and I talked about something similar the other night, but I wanted to highlight a specific problem I ran into the other day, because it may be something that we need to factor into the app a little more to specifically guard against this type of issue.
Here is a character that isn’t fixed width:
Highlighting it shows it breaking out of the character square:
It basically throws out all caret positions to the right of the character in question:
Not sure what the best solution is here, but yeah. Happy to brainstorm solutions 😄
Yeah... seems like even in a fixed-width font, you can run into "special" situations. Are there better fonts, like Adobe's Source Code that do a better job with this? If we can't rely on fixed width fonts being truly fixed-width, then we're going to need to deal with this sooner rather than later.
Right now we just multiply columns times a measured "character width". If different characters are different widths, then we'll need to keep a cache of how wide a given character is at a given font size, and actually measure it for unknown characters.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
nathansobo commentedon Jan 22, 2013
Yeah... seems like even in a fixed-width font, you can run into "special" situations. Are there better fonts, like Adobe's Source Code that do a better job with this? If we can't rely on fixed width fonts being truly fixed-width, then we're going to need to deal with this sooner rather than later.
Right now we just multiply columns times a measured "character width". If different characters are different widths, then we'll need to keep a cache of how wide a given character is at a given font size, and actually measure it for unknown characters.
jonrohan commentedon Feb 2, 2013
There's more info on this here #225
lock commentedon Jan 28, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!