-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Blurry default font on Mac with non-high-dpi display #21577
Comments
@chrmarti From zooming in to your screenshots, it appears the font is rendered using subpixel antialising, which was in the past a main source of bluriness: So I think we're doing things ok on our side (i.e. positioning layers at integer coordinates, opaque background, etc.) Possible related: #9152 Maybe you can try playing with Specifically on the mac, there are other issues reporting that the text is rendered too thick. Perhaps you can also play with |
@alexandrudima See the above. |
@chrmarti I agree, all screenshots look bad. Perhaps some more CSS tweaks if you'd like to try them out on your setup (I think you're using a mac connected to a non-retina display, right?). Maybe if we find some of these to have a positive effect I can create an editor setting toggling them on/off: text-rendering
-webkit-text-strokehttps://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-stroke -webkit-font-smoothing: subpixel-antialiased |
I'm sorry, there's nothing more I can think of. Now I'm just fishing in here: Here are the last CSS knobs I could find in that code that you haven't been through yet (IMHO unlikely they would improve things): |
Todays VS Code insider build comes with Electron 1.6.x, would be interesting to hear if this update solves this issue for anyone: http://code.visualstudio.com/Download#insiders |
@chrmarti is really easy to play with css changes without going to "Help > Toggle Developer Tools" in vsCode? are they permanent? I am trying to find a way without open the developers tools with no success. I have a MacBook Air and the font shows the same result as you show in the above files. |
@infojasyrc I did not make any permanent changes to try this. Personally I'm using the Fira Code font with ligatures enabled and size 14. That looks good also on normal resolution displays, my concern here is more with the initial user experience. |
@chrmarti I think It will be great to have a less|sass|any css file to modify this globals settings for VSCode as atom has. |
@infojasyrc That is tracked in #459. |
@chrmarti can this be closed? |
Yes, not actionable. |
Default (especially 'e' and 'a' are bad):
![screen shot 2017-02-28 at 2 28 10 pm](https://cloud.githubusercontent.com/assets/9205389/23437231/298c7afe-fdc2-11e6-9172-2ad6451dc6e9.png)
Font-size 14 helps, but is a little clunky:
![screen shot 2017-02-28 at 2 30 39 pm](https://cloud.githubusercontent.com/assets/9205389/23437314/84391250-fdc2-11e6-9432-16257ce54c88.png)
Fira Code, size 14:
![screen shot 2017-02-28 at 2 31 43 pm](https://cloud.githubusercontent.com/assets/9205389/23437357/a9fdf83e-fdc2-11e6-8c32-b1a015c66683.png)
Hack, size 14:
![screen shot 2017-02-28 at 2 35 07 pm](https://cloud.githubusercontent.com/assets/9205389/23437474/2c6c9514-fdc3-11e6-95d3-cdc5bd0123d7.png)
Fira Code, size 14, with ligatures (which Hack doesn't support):
![screen shot 2017-02-28 at 2 45 38 pm](https://cloud.githubusercontent.com/assets/9205389/23437952/c71ceda6-fdc4-11e6-95da-e99a06e43dde.png)
The text was updated successfully, but these errors were encountered: