Skip to content

Thin font rendering issues on macOS Catalina #82109

Closed

Description

Issue Type: Bug

After upgrading to macOS Catalina, the system font used in Visual Studio Code looks very narrow - and different from other apps in macOS Catalina.

It seems that instead of using SF Pro Text, Visual Studio Code uses .SF NS on macOS Catalina.

This is probably due to a bug in Chromium which I have reported here: https://bugs.chromium.org/p/chromium/issues/detail?id=1012247

VS Code version: Code 1.38.1 (b37e54c, 2019-09-11T13:31:32.854Z)
OS version: Darwin x64 19.0.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2900)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (2.58GB free)
Process Argv
Screen Reader no
VM 0%

Activity

  1. vscodebot commented on Oct 8, 2019

    @vscodebot

    (Experimental duplicate detection)
    Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

  2. added
    upstream
    on Oct 8, 2019
  3. miguelsolorio commented on Oct 9, 2019

    @miguelsolorio
    Contributor

    Relate to this, on the Welcome screen the title areas are a lot thinner in the new font:

    image

  4. sschultze commented on Oct 10, 2019

    @sschultze
    Author

    Noticed that in the code editor, the characters are also too thin, plus they are too far away from each other.

    This seems to be related to the macOS Catalina font kerning bug in Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=1005969

  5. added
    upstream-issue-linked
    on Oct 10, 2019
  6. bpasero commented on Oct 10, 2019

    @bpasero
    Contributor

    Robo (@deepak1556) maybe something to backport

  7. added
    electron
    on Oct 10, 2019
  8. sschultze commented on Oct 11, 2019

    @sschultze
    Author

    One of my computers I downgraded to macOS Mojave because of this issue.

    On the other computer, downgrading is not possible (because of my photo library etc.), but I've found a workaround at least for the code editor:

    You can play around with the setting "Editor: Letter Spacing". On my computer, entering "-0.2" did a good job at working around this issue (at least for the editor, which is the most important to me).

  9. changed the title [-]Wrong system font used on macOS Catalina[/-] [+]Font rendering issues on macOS Catalina[/+] on Oct 11, 2019
  10. DOBRO commented on Oct 14, 2019

    @DOBRO

    Try this in Terminal:

    defaults write com.microsoft.VSCode.helper CGFontRenderingFontSmoothingDisabled -bool NO
    

    and reopen VS Code

  11. 14 remaining items

  12. cebor commented on Nov 12, 2019

    @cebor

    Marius (@MariuzM) very strange, for me its the exact opposite, besides the dimmed colorization.

    Can you check the Settings -> Workbench -> Appearance -> Font Aliasing, is it set to default ?

  13. MariuzM commented on Nov 12, 2019

    @MariuzM

    Yep on all instances it's set to default

  14. cebor commented on Nov 12, 2019

    @cebor

    MacOS Preferences -> General -> Use font smoothing when available (x). Do you also have this enabled? For me, when i disable this option i get the same results as you.

  15. MariuzM commented on Nov 12, 2019

    @MariuzM

    Tried both on and off no difference this was tested with default Mojave (no font tweak)
    Also to confirm I'm using SourceCodePro-Light in VSC

  16. sschultze commented on Nov 12, 2019

    @sschultze
    Author

    The Chromium team has yet to fix this unfortunately. Until then, I guess there's not much that can be done on the VS Code side. I have downgraded my main computer to macOS Mojave because of this issue.

    https://bugs.chromium.org/p/chromium/issues/detail?id=1005969

    "We're treating this issue as high priority and progress is being made towards a fix. The issue is complex due to changes to the "San Francisco" system font and how CoreText works with respect to setting the optical size axis. As you can see from the BlockedOn: column, the Chromium side fix depends on fixes in the Skia graphics library. Please continue to star this issue and follow along, but please keep comments on topic."

  17. uurtsaikhb commented on Dec 17, 2019

    @uurtsaikhb

    They have patch to fix it, can't wait to update it. Thanks guys

  18. texascloud commented on Jan 15, 2020

    @texascloud

    Is this still an ongoing issue?

  19. DOBRO commented on Jan 16, 2020

    @DOBRO

    Is this still an ongoing issue?

    As for me, it should be closed. Thanks!

  20. MariuzM commented on Jan 16, 2020

    @MariuzM

    For me it's still an issue but i just got used to it.

  21. luisbelloch commented on Feb 11, 2020

    @luisbelloch

    Still and issue for me 🤔 Font looks blurry on external monitor.

    Screenshot 2020-02-11 at 09 37 03

    Screenshot 2020-02-11 at 09 37 28

    I've also set this:

    defaults write com.microsoft.VSCode.helper CGFontRenderingFontSmoothingDisabled -bool NO
    

    Keeping on 1.39.0 until this gets fixed 😞

  22. MariuzM commented on Feb 11, 2020

    @MariuzM

    This won't get fixed i believe, VSCode or Electron stoped using MacOS sub pixel AA, even on Mojave and later Apple stoped supporting this

  23. haoqunjiang commented on Feb 11, 2020

    @haoqunjiang

    The Chromium team has (partially) fixed the narrow font issue and shipped it in the Canary channel (v81).

    The current stable Electron release depends on Chromium 80 https://github.com/electron/electron/releases/tag/v8.0.0

    The VSCode project depends on Electron 7.1.11 at the moment

    "electron": "7.1.11",

    So there seems still a long way to go.

  24. deepak1556 commented on Nov 5, 2020

    @deepak1556
    Collaborator

    the relevant chromium fix has been landed with our latest stable, closing

  25. locked and limited conversation to collaborators on Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

electronfont-renderingmacos-catalinaupstreamupstream-issue-linked

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions