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.
I'm using the Atom for Windows Alpha from the Atom website (not Chocolatey), version 0.136.0 (as viewed in the Help menu and with --version in the command line, the version file in the Atom folder says v0.17.1; it was downloaded around 12:30AM US Eastern on October 14, 2014 if that helps) on Windows 8.1. I set text-rendering: optimizeLegibility; for .editor in styles.less (because otherwise the ligatures aren't in effect and I get each individual character). This happens regardless of whether hardware acceleration is enabled. It also happens in --safe mode, and the developer tools console shows no errors.
(<*>)::Functor f=>(a->b)->(f a->f b)
fmap::Functor f=>(a->b)->(f a->f b)
in Hasklig, which has ligatures for <*>, ::, =>, and ->.
fifififififififififi
in Calibri, using the ligature for fi. The cursor is at the end of the line, and the misspell underline only leads up to that point as well. The ligature for ff in Calibri has the opposite effect; the cursor and underline extend farther than text on the screen if you put enough f's on a line.
@50Wliu nope. #2880 is about disabled rendering ligatures (two symbols instead of one) and this issue is about wrong caret position on font with ligatures.
I'm having the same issue and it makes it impossible to use - the cursor shows up far left of where it actually is on the page; I switched to Atom for its support of ligatures (Hasklig). (OSX - and I've disabled hardware acceleration as well)
I think so, as on master Atom now behaves exactly as Chrome <textarea>. This is how Monoid support looks like without any particular configuration (except for text-rendering: optimizeLegibility):
Unfortunately, Hasklig/Fira Code are not 100% supported as Chrome won't report the exact space between characters when there is a ligature (e.g. they seem to be considered as a single character), so the cursor won't be positioned "inside" it:
However, we now degrade gracefully and allow the cursor to be positioned correctly even on subsequent characters without any special configuration. So, you shouldn't see stuff like the following happening anymore:
Ideally I'd love to put a break in between characters when some kind of edit action is happening, but that comes with a performance overhead because we'd have to change the line every time e.g. a cursor is moved.
I am going to close this for now, as Atom should now be usable regardless of the font configuration and behaves exactly like Chrome text area does. Please, let me know if we should reopen this because of some issue I am not taking into account.
When will this be active? In the current Atom the ligatures work mostly fine (no rendering of != though) but there are a bunch of spacing issues with text when text-rendering: optimizeLegibility is on.
Most likely in the v1.2.0 release I believe (unless some serious regressions are discovered). If you want it immediately, consider building the master branch yourself. It's fairly straight forward.
I stumbled upon this post trying to understand why the "Space Mono" font renders the characters "fi" funny (and converts html closing tags into arrows). Linux with Atom 1.9.9 and Mac OS X with Atom 1.10.2, for me a fine workaround is to shut down this feature completely by adding this to the stylesheet:
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
ai commentedon Jan 9, 2015
makes little bit better, but not enough
ai commentedon Jan 9, 2015
Also same problems are with Fire Code
ai commentedon Jan 9, 2015
/cc @kevinsawicki @benogle
benogle commentedon Jan 9, 2015
Try disabling
Use hardware accelerationin the settings. Does that help?ai commentedon Jan 10, 2015
@benogle thanks for advice. But it really not help. LIgatures behaviour is totally same without “Use hardware acceleration”.
winstliu commentedon Jan 10, 2015
Refs #2880 (possible duplicate).
ai commentedon Jan 10, 2015
@50Wliu nope. #2880 is about disabled rendering ligatures (two symbols instead of one) and this issue is about wrong caret position on font with ligatures.
winstliu commentedon Jan 10, 2015
Oh, whoops.
killercup commentedon Feb 5, 2015
Is there any progress on this? A recent update (I guess it was 0.177) made this much worse for me.
Compare the position of colons and semicolons, for example:
benogle commentedon Feb 5, 2015
@killercup what font are you using?
killercup commentedon Feb 5, 2015
That's Hasklig (same as a previous commenter IIRC).
On Thu, Feb 5, 2015 at 7:51 PM, Ben Ogle [email protected] wrote:
asamiam commentedon Feb 7, 2015
I'm having the same issue and it makes it impossible to use - the cursor shows up far left of where it actually is on the page; I switched to Atom for its support of ligatures (Hasklig). (OSX - and I've disabled hardware acceleration as well)
jutaro commentedon Feb 7, 2015
I would like to use Hasklig with ligatures as well. Unusable on Linux (tried with all kind of options). Please fix!
33 remaining items
as-cii commentedon Oct 8, 2015
I think so, as on master Atom now behaves exactly as Chrome
<textarea>. This is how Monoid support looks like without any particular configuration (except fortext-rendering: optimizeLegibility):Unfortunately, Hasklig/Fira Code are not 100% supported as Chrome won't report the exact space between characters when there is a ligature (e.g. they seem to be considered as a single character), so the cursor won't be positioned "inside" it:
However, we now degrade gracefully and allow the cursor to be positioned correctly even on subsequent characters without any special configuration. So, you shouldn't see stuff like the following happening anymore:
Ideally I'd love to put a break in between characters when some kind of edit action is happening, but that comes with a performance overhead because we'd have to change the line every time e.g. a cursor is moved.
I am going to close this for now, as Atom should now be usable regardless of the font configuration and behaves exactly like Chrome text area does. Please, let me know if we should reopen this because of some issue I am not taking into account.
Thanks everyone! 🙏
Rydgel commentedon Oct 8, 2015
@as-cii This looks much better indeed, thank you. Is this patch scheduled on the next stable release?
MrLoh commentedon Oct 8, 2015
When will this be active? In the current Atom the ligatures work mostly fine (no rendering of
!=though) but there are a bunch of spacing issues with text whentext-rendering: optimizeLegibilityis on.thomasjo commentedon Oct 8, 2015
Most likely in the v1.2.0 release I believe (unless some serious regressions are discovered). If you want it immediately, consider building the
masterbranch yourself. It's fairly straight forward.alexandernst commentedon Oct 8, 2015
@thomasjo WIll
text-rendering: optimizeLegibilitybe enabled by default? aka, will ligatures work out of the box?thomasjo commentedon Oct 8, 2015
No, that hasn't changed. I could see that being introduced as a configuration option though... I'm pretty sure such a PR would be accepted 😏
altaic commentedon Oct 9, 2015
This is great; thank you so much.
gusaiani commentedon Oct 9, 2015
Thanks to everyone who made this happen.
Fresheyeball commentedon Oct 9, 2015
This made my day. Thank you so much for making this happen.
Add Atom support
hyiltiz commentedon Oct 26, 2015
Cheers for making this happen!
ngeor commentedon Sep 25, 2016
I stumbled upon this post trying to understand why the "Space Mono" font renders the characters "fi" funny (and converts html closing tags into arrows). Linux with Atom 1.9.9 and Mac OS X with Atom 1.10.2, for me a fine workaround is to shut down this feature completely by adding this to the stylesheet:
after that the font works fine.
lock commentedon Apr 5, 2018
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!