-
Notifications
You must be signed in to change notification settings - Fork 28.7k
-
Notifications
You must be signed in to change notification settings - Fork 28.7k
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
"l·l" Ligature in "Source Code Pro" incorrectly invoked when render whitespace is enabled #106583
Comments
This does not reproduce when running with |
Workaround: |
OK. I have actually found out quite a number of things while investigating this:
TL;DR: This has changed since VS Code 1.49 because we have upgraded to Electron 9, which ships |
I run into this issue as well. If this is a not a bug, what is it? I don't mind having fine control over font features (that sounds great actually). However, there really should be a simple setting that effectively disables all use of font ligatures. Something like |
see: microsoft/vscode#106583 Signed-off-by: Piyush Pangtey <gokuvsvegita@gmail.com>
I had the same issue.
|
Copying here what I commented in adobe-fonts/source-code-pro#260:
|
@fitojb makes a reasonable point, but switching will make the visible whitespace harder to see. |
Another screenshot with some more options plus a first line showing how the current choice (MIDDLE DOT) looks when visible whitespace is enabled. This time I have also used "Zoom In". Compare lines 1 and 3 to see how the dimming of visible whitespace affects the visibility of the chosen character. Theme: Dark+ Theme: Light+ My test file: |
That depends on what font user is using. |
I'm a bit confused. The text being rendered is already different from the text being interacted with (e.g. there's a dot there, where there isn't in the text). So why can't we just render That way we preserve the aesthetic, which admittedly I do like the best out of the options, while still not causing problems for fonts which define the Catalan ligature, AFAIK without needing to tweak rendering code significantly. ETA: my hesitation isn't sarcasm, I'm just not familiar enough with VS Code's internals to know whether this is really an option. |
Just a reminder that this bug is still a problem (deb package version 1.56.2-1620838498). |
This is still a problem, and having to set ligatures to |
@jonnyhoff me too |
Just updated to latest VSCode. This issue remains unfixed. |
Also suffering from this. |
|
Fixes microsoft/vscode/microsoft#106583
Steps to Reproduce:
editor.renderWhitespace
toall
.editor.fontFamily
toSource Code Pro
(ensure you have the font installed on your system).editor.fontLigatures
tofalse
(this issue is not reproducible if this setting is not set tofalse
).l l
(a lowercase letter "l", followed by a space, followed by another lowercase letter "l").Screenshot of this bug:
When
editor.renderWhitespace
is set toall
, the whitespace character (U+0020) is rendered as the middle dot unicode character,·
(U+00B7). Coincidentally, "Source Code Pro" has a ligature that comprise of the charactersl·l
(see the screenshot above), so this might be the reason why the ligature is invoked.Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: