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

Cursor alignment off with some Unicode characters #195

Closed
tjrobinson opened this issue May 16, 2017 · 5 comments
Closed

Cursor alignment off with some Unicode characters #195

tjrobinson opened this issue May 16, 2017 · 5 comments

Comments

@tjrobinson
Copy link

tjrobinson commented May 16, 2017

When editing the following markdown, the cursor alignment isn't correct making typing/selection difficult:

t❌✔t D123456❌✔5

image

image

Windows is scaled at 100% on a 2560x1440 resolution, running Windows 10 Creators Update.

@RickStrahl
Copy link
Owner

Thanks Tom.

Not sure if that'll be possible. The editor (Ace Editor) is very finicky about using fixed width fonts as it has to calculate character spacing based on known widths for the active font.

While that may not be possible you can probably use the Emojii picker to get the right icons into your text though.

@tjrobinson
Copy link
Author

Ah, that's a shame. It's not a problem most of the time but we've got one page on our wiki with a lot of emojis on it :)

And yes, I really should get round to registering my copy soon.

@RickStrahl
Copy link
Owner

RickStrahl commented May 19, 2017

I'll forward this to the Ace repro and see what they have to say - I'm pretty sure this is not doable as they rely on fixed width characters, but worth the question. I'll forward whatever comes back here. I'll leave this open in the meantime.

@RickStrahl RickStrahl reopened this May 19, 2017
@RickStrahl
Copy link
Owner

Looks like there are several issues out on this, but it hasn't really made any progress. There are patches that have been in process for a couple of years. This may get fixed in the future but not likely any time soon. :-(

@RickStrahl
Copy link
Owner

As mentioned there are several threads open on this on the Ace Forum and it looks like this unfortunately won't get fixed any time soon since it requires some major reworking of the editor internals.

Here's one of the discussions:
ajaxorg/ace#1153

Closing issue for now since this is not likely to get resolved.

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