Code change:
VSCode Version: 1.0 OS Version: Ubuntu 16.04 Ubuntu 16.04 (Xenial Xerus) no longer carries , this causes font to be rendered with if Linux desktop user installed MS core fonts (more than likely). Given Ubuntu still carries open source fonts such as or , which are better for LCD than , consider: Adding those to the font list Remove from font list - let the OS decide
I see uses of this font in editor, git and debug land. Starting with editor.
I bumped into this today, after updating to insiders 1.2.0. I'm on Ubuntu 16.10. For now, workaround by manually overriding the font family: Either way, I see no sense in giving "Droid Sans" as a first option, even on Linux. If the user has the MS fonts installed, they should be used.
I also noticed this. I installed "fonts-noto" package from the repositories because some people say Noto font family is similar to Droid.
I solved this by simply installing the font from
this is somewhat related to which has similar issues for the UI font. The real fix here is to lean on Chromium to pull in the system monospace font from the OS if it's available (a system-ui font was proposed in ). Is there any reason just is not used? Also why is Courier New there at all?
for no good reason except version-to-version stability.
I only just became aware of this but it's a pretty big issue imo. If I remove my on Ubuntu 16.10 it falls back to Courier New which really affects readability because of its weight and the fact it's a serif font. If this was what I saw as my first impression I'd be kind of turned off by the default font. Hack: ! Courier New: ! Sure it can always be changed but we can't rely on people knowing or bothering to do that. Also on this PC seems to fall back on Courier New.
My honest suggestion is to ship VSCode with a cool font such as Hack or Inconsolata and have one of those be the default. IMHO too many folks are left with ugly monospace fonts.
I just read your comment but I'll post this anyway since we agree :stuckouttongue: have you considered bundling a standard monospace font that looks good on all platforms with the distributable? The developer of reached out to me a couple of months ago and asked if we'd be interested in doing that, gzipped the 4 font variants are only ~700kb.
Yeah, I've mentioned this to and a couple of times already. Not sure about the legal implications, but IMHO that would be a smart move for us.
Here's the expression of interest I mentioned from the developer of Hack
Is there a reason why couldn't be that alias for the system monospace font?
This now also affects Debian Stretch. After upgrading the font is displayed because the fonts-droid is not in the repositories anymore. Debian maintainers switching from to . I have followed the recommendations and have installed and replaced with in which in my opinion looks very good. Setting the default to on Debian results in a very ugly result. I changed the default font in Gnome Tweak Tool and in fontconfig to . as you can see it is not taken into account: ! Until a font is bundled with VSCode, could we add in the for Linux, and perhaps add as a suggested package in the Debian package? is in the section in Debian repositories. Unfortunately it is in the section in the Ubuntu repositories, thus users must activate it before being able to install the package, this is why I suggest to as a package instead of a recommends/depends.
Isn't this a Debian bug then? AFAIK you can't change the font in gnome-tweak-tool. It will only set a dconf value, not the alias which is configured via fontconfig.
Note that I have also defined as the font in fontconfig by defining an alias in: As you can see NotoMono is returned as the maching font for . And I confirm that the monospace font is now rendered using on other applications running on my system, except Visual Studio Code where it seems to default to . I don't think there is a bug in Debian because other application seem to behave correctly. I agree that the correct and clean solution would be to define as the only font listed in . Although: In my opinion on many systems the default monospace font is ugly. If we really want to use as a default then we need to find out why the font is rendered as on some systems when is defined as another font.
Could be a Chromium/Electron bug then. Can you try in Chromium/Chrome? IMHO that's a bug of those systems and will never be fixed, if applications work around it.
I have interesting results. I have crafted the following html page: And got the following results. ! I noticed that adding quotes around the monospace word would yield different results. I have changed to in VSCode and it is now rendered correctly: !
Try Ubuntu Mono. Monaco is good one but personally, I like Ubuntu Mono. !
Hi, everybody! Replace 'Droid sans mono' by 'Ubuntu mono' looks good to me. I didn't download any font pack.
there was another issue a while ago discouraging the use of Ubuntu Mono as then it's picked up as the default on non-Ubuntu Linux distros . Ideally we would pick up whatever the display manager configures as the default monospace font, but monospace often doesn't give us that.

Related discussion:
text: const DEFAULT_WINDOWS_FONT_FAMILY = 'Consolas, 'Courier New', monospace'; const DEFAULT_MAC_FONT_FAMILY = 'Menlo, Monaco, 'Courier New', monospace'; <del> const DEFAULT_LINUX_FONT_FAMILY = ''Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback''; </del> <ins> const DEFAULT_LINUX_FONT_FAMILY = ''Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback''; </ins> /** * @internal