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

Vertical cursor movement considering character width. #136226

Closed
y-kim opened this issue Nov 1, 2021 · 3 comments
Closed

Vertical cursor movement considering character width. #136226

y-kim opened this issue Nov 1, 2021 · 3 comments
Labels
editor-core Editor basic functionality feature-request Request for new features or functionality

Comments

@y-kim
Copy link

y-kim commented Nov 1, 2021

Cursor position is already adjusted between Latin characters and CJK characters. However I think there are other characters should be considered together.

For example, Digit x Full Stop (U+2488 ~ U+249B) or Roman Numeral x (U+2160 ~ 2179) may be better to be considered as width of 2. Monospace fonts usually give the same width for the same group of characters, and above two groups it is very difficult to display them as width of 1.

Actually it is very difficult to mark width of characters because fonts may renders them differently. For example, "Box Drawings" are considered as 1-width for western fonts, but some old Asian monospace fonts consider them as 2-width.

Here is my feature request ...

  1. Selectively give 2-width to characters, OR
  2. Dynamically calculate width based on a font when the font is monospace, OR
  3. Give an option to configure character width.

cursor

@alexdima alexdima added editor-core Editor basic functionality feature-request Request for new features or functionality labels Nov 3, 2021
@alexdima alexdima removed their assignment Nov 3, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-core Editor basic functionality feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants
@alexdima @y-kim and others