microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.05k stars 29.21k forks source link

Expose -webkit-text-stroke (Fonts are too thin on Ubuntu 16.10) #17963

Open sryze opened 7 years ago

sryze commented 7 years ago

I use VS Code on Windows, Mac and since recently Linux, and for some reason text looks much thinner on Linux than on other systems, which makes it a little bit harder to read. Here is a screenshot:

vscode-fonts

Font settings:

    "editor.fontSize": 14,
    "editor.fontFamily": "Source Code Pro",
    "window.zoomLevel": 0

System font settings:

I've tried various combinations of antialiasing and hinting settings but they all look as bad or worse.

sryze commented 7 years ago

For what it's worth, Atom has the same problem but I was able to overcome it by adding the following to my stylesheet (found somewhere on the internet):

body, .editor {
  -webkit-text-stroke: .03em;
}

This made text a little bit thicker. Can I do something like this with Visual Studio Code?

FabianLauer commented 7 years ago

Agreed, specifically in dark color themes fonts can be hard to read on Ubuntu. I'm using this as a remedy:

body {
    -webkit-text-stroke: 0.2px;
    text-shadow: 0 0 0.05px;
}

How about a new user setting to make text appear "bolder"?

m-thorsen commented 6 years ago

This is still an issue with later Electron versions, and especially so on Arch Linux (possibly others) where Electron subpixel rendering isn't working at all (just grayscale). Ref: https://github.com/electron/electron/issues/12541

Since light themes don't respond as well to these fixes as dark themes, I'd like to propose something a bit more granular - like workbench.fontEmboldening with a few options:

The alternative would of course be to allow user styles (like Atom), but I seem to recall there were performance concerns?

albertorestifo commented 6 years ago

Any progress on this front?

pavangayakwad commented 5 years ago

Any updates on this?

Serra53 commented 4 years ago

Any updates on this?

rhighs commented 2 years ago

Any update on this?