Skip to content

Add option to turn off anti-aliasing for editor font. #2577

Closed

Description

Thanks for the great product!

Sublime Text allows you to turn off anti-aliasing, which looks great for some fonts:

{
    "font_face": "MS Gothic",
    "font_options":
    [
        "no_antialias"
    ],
    "font_size": 18,
}

I've looked around, but there doesn't seem to be an easy way to do this. Is there a way for me to do this in VSCode?

Activity

  1. alexdima commented on Feb 2, 2016

    @alexdima
    Member

    VSCode is built on Electron, and the rendering is basically Chromium.

    -webkit-font-smoothing: none; used to control that, but it doesn't look like it's doing anything for me on windows

  2. globalchubby commented on Feb 2, 2016

    @globalchubby
    Author

    Thanks alexandrudima; I use that rule with the Stylish plugin. Do you where I can set that setting on VSCode?

  3. alexdima commented on Feb 4, 2016

    @alexdima
    Member

    At this time, we don't give a straight-forward way to directly customize CSS, neither from an extension nor from a user configuration option. Short of editing the .css files we ship with (and lose the edits on updates) there's nothing I can think of. Even then, I have tried the -webkit-font-smoothing: none; and it doesn't seem to have any effect.

  4. Codemaverick commented on Feb 10, 2016

    @Codemaverick

    I use VSCode on a mac, and I have to say I much prefer having this as an option rather than not. Is it possible to make it a feature request?

  5. added
    feature-request
    on Feb 11, 2016
  6. wprater commented on Oct 17, 2016

    @wprater
    Contributor

    do the themes have a way to expose this css prop on the editorPart yet? I can set it manually on macOS and it looks much better when I set -webkit-font-smoothing: antialiased

  7. rafmst commented on Nov 17, 2016

    @rafmst

    How do you do that Will Prater (@wprater)?

  8. akabiru commented on Nov 21, 2016

    @akabiru

    @ptraceur To set it manually Go to Help > Toggle Developer tools and then paste -webkit-font-smoothing: antialiased in the CSS section. It's only temporary though.

  9. rafmst commented on Nov 21, 2016

    @rafmst

    Kabiru Mwenja (@akabiru) I see... if I close vscode, it will get as normal again right? Do you have any idea on how to make this permanent?

  10. akabiru commented on Nov 21, 2016

    @akabiru

    @ptraceur Yeah, it's a temporary fix. I'm not sure how to make it permanent at the moment.

  11. chriskrycho commented on Dec 6, 2016

    @chriskrycho

    On any "retina" class monitor, the difference this makes is substantial. Please consider adding it as a configuration option.

  12. icewind commented on Dec 14, 2016

    @icewind

    Just add an ability to use user.css like in Atom. Then it will be possible to gradually adjust anything.

  13. 60 remaining items

  14. schnz commented on Aug 17, 2017

    @schnz

    Is there anything I can do to achieve a similar result for Windows? Actually, this is currently the reason why I am still using Sublime over VS Code. I am using the no_antialias font option in Sublime and are quite used to the font style. Unfortunately the solutions proposed in this issue seem only to affect MacOS.

  15. mathewhany commented on Aug 18, 2017

    @mathewhany

    @Coksnuss Same here!

  16. thefill commented on Aug 27, 2017

    @thefill

    Benjamin Pasero (@bpasero) I confirm that this option works on macOS:
    screenshot at aug 27 13-34-28

  17. mmarzec commented on Aug 31, 2017

    @mmarzec

    The merge request #30628 is providing configuration but only for macOS platform.
    Can we reopen the issue to add that option to Windows platform?

  18. schnz commented on Aug 31, 2017

    @schnz

    mmarzec I would love to have that option for Windows too. However, I fear that the WebKit engine does not support that possibility at all. Please correct me if I am wrong.

  19. mathewhany commented on Aug 31, 2017

    @mathewhany

    @Coksnuss I think Atom has options for font anti-aliasing, I'm not sure though.

  20. mmarzec commented on Sep 1, 2017

    @mmarzec

    I think that "-webkit-font-smoothing" is supported on Windows on Chrome. But in case of no antialiasing there was recently a problem with DirectWrite font rendering in Windows which can't produce non antialiased fonts. The problem came since Chrome version 52 where old GDI font rendering was removed.
    The problem is more detailed explained here: https://www.change.org/p/google-inc-bring-sharp-fonts-back-in-google-chrome-disable-directwrite

    I am not very familiar how VSC is created but if it is based on Chrome than to have posibility to have non antialiased fonts it will be required to introduce same option of changing "-webkit-font-smoothing" on Windows and also compile Chrome with GDI font rendering possible.
    As for GDI font rendering there is web browser based on Chrome - CentBrowser where they bring back GDI font rendering, so it should be possible.

  21. kraftwer1 commented on Sep 30, 2017

    @kraftwer1

    Priit Haamer (@priithaamer) Are you by any chance working on editor.fontAntialiasing? :-)

  22. lumberman commented on Oct 2, 2017

    @lumberman

    Very annoying to see any font so fat in this editor.

  23. priithaamer commented on Oct 5, 2017

    @priithaamer
    Contributor

    kraftwer1 I was working on editor.fontAliasing this summer and got done part of it. Too bad this change got merged so early, i lost part of the interest :) Sorry about this, i'd definitely want to finish the editor part of it.

  24. kraftwer1 commented on Oct 6, 2017

    @kraftwer1

    Priit Haamer (@priithaamer) I see. I've just noticed that with the new September release, antialiasing in the built-in terminal doesn't seem to work anymore.

  25. KonaBlend commented on Oct 6, 2017

    @KonaBlend

    fontAliasing is not only useful for workspace but pretty much anywhere one can specify a font/size.

    For example, the built-in terminal, I would prefer Monaco font, size=10, fontAliasing=none because Monaco is designed for that. For editor, another font/size/aliasing.

    As of 1.17.0 "terminal.integrated.fontAliasing": "none" has no effect on macOS. Also "editor.fontAliasing" has no effect.

  26. priithaamer commented on Oct 8, 2017

    @priithaamer
    Contributor

    kraftwer1 KonaBlend (@KonaBlend) Thanks for reporting this. I will take a look what happened with fontalias setting in terminal.

  27. smoothdeveloper commented on Nov 15, 2017

    @smoothdeveloper

    What is the way to disable antialiasing in the editor? Benjamin Pasero (@bpasero) mentions workbench.fontAliasing but it doesn't seem to be a known configuration setting nor to do anything when I add it to my user settings.

    Thanks.

  28. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-corefeature-requestverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions