Skip to content

Fonts are fuzzy after update to v103 on linux  #260391

Open

Description

@adduc

Type: Bug

Using a font that is "bitmap"-like (Terminus TTF), observe the font renders pixel-accurate in 102.3.

After updating to vscode 103.0, the editor and terminal font now appears to be blurry (aliased?) reducing the legibility of the editor

VS Code version: Code 1.103.0 (e3550cf, 2025-08-06T21:40:10.271Z)
OS version: Linux x64 6.15.7-100.fc41.x86_64
Modes:

System Info
Item Value
CPUs AMD Ryzen 7 7700 8-Core Processor (16 x 4182)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 1, 1, 1
Memory (System) 62.52GB (46.72GB free)
Process Argv --disable-smooth-scrolling --no-sandbox
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland
Extensions (12)
Extension Author (truncated) Version
terraform 4op 0.2.5
claude-code Ant 1.0.70
vscode-intelephense-client bme 1.14.4
RunOnSave eme 0.2.7
copilot Git 1.350.0
copilot-chat Git 0.30.0
vscode-pull-request-github Git 0.114.3
go gol 0.48.0
hcl has 0.6.0
hg mrc 1.9.0
vscode-just-syntax nef 0.8.0
pdf tom 1.2.2

Notes

I am experiencing this in an Ubuntu 22.04 X11 session and in a Fedora 41 Wayland session.

Activity

  1. adduc commented on Aug 7, 2025

    @adduc
    Author
    Before (102.3) Image
    After (103.0) Image
  2. deepak1556 commented on Aug 8, 2025

    @deepak1556
    Collaborator

    Do you have fractional scale factor set on your display settings ? Can you also share your fontconfig, this sounds similar to https://issues.chromium.org/issues/415453014. Can you check if https://vscode.dev repro the issue with Chromium browser under the current settings ?

  3. added
    bug
    font-rendering
    under-discussion
    regression
    on Aug 8, 2025
  4. adduc commented on Aug 8, 2025

    @adduc
    Author

    Fractional scale is not set, all monitors are set to 100% scale.

    GNOME Display Settings Image

    I couldn't find any fonts.conf within my home directory or any descendants (find ~ -name fonts.conf). Here's the font config at /etc/fonts/fonts.conf

    /etc/fonts/fonts.conf
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
    <!-- /etc/fonts/fonts.conf file to configure system font access -->
    <fontconfig>
            <description>Default configuration file</description>
    
    <!--
            DO NOT EDIT THIS FILE.
            IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
            LOCAL CHANGES BELONG IN 'local.conf'.
    
            The intent of this standard configuration file is to be adequate for
            most environments.  If you have a reasonably normal environment and
            have found problems with this configuration, they are probably
            things that others will also want fixed.  Please submit any problems
            to the fontconfig issue tracking system located at fontconfig.org
    
            Note that the normal 'make install' procedure for fontconfig is to
            replace any existing fonts.conf file with the new version.  Place
            any local customizations in local.conf which this file references.
    
            Keith Packard
    -->
    
    <!-- Font directory list -->
    
            <dir>/usr/share/fonts</dir>
            <dir>/usr/share/X11/fonts/Type1</dir> <dir>/usr/share/X11/fonts/TTF</dir> <dir>/usr/local/share/fonts</dir>
            <dir prefix="xdg">fonts</dir>
            <!-- the following element will be removed in the future -->
            <dir>~/.fonts</dir>
    
    <!--
      Accept deprecated 'mono' alias, replacing it with 'monospace'
    -->
            <match target="pattern">
                    <test qual="any" name="family">
                            <string>mono</string>
                    </test>
                    <edit name="family" mode="assign" binding="same">
                            <string>monospace</string>
                    </edit>
            </match>
    
    <!--
      Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
    -->
            <match target="pattern">
                    <test qual="any" name="family">
                            <string>sans serif</string>
                    </test>
                    <edit name="family" mode="assign" binding="same">
                            <string>sans-serif</string>
                    </edit>
            </match>
    
    <!--
      Accept deprecated 'sans' alias, replacing it with 'sans-serif'
    -->
            <match target="pattern">
                    <test qual="any" name="family">
                            <string>sans</string>
                    </test>
                    <edit name="family" mode="assign" binding="same">
                            <string>sans-serif</string>
                    </edit>
            </match>
    <!--
      Accept alternate 'system ui' spelling, replacing it with 'system-ui'
    -->
            <match target="pattern">
                    <test qual="any" name="family">
                            <string>system ui</string>
                    </test>
                    <edit name="family" mode="assign" binding="same">
                            <string>system-ui</string>
                    </edit>
            </match>
    
    <!--
      Load local system customization file
    -->
            <include ignore_missing="yes">conf.d</include>
    
    <!-- Font cache directory list -->
    
            <cachedir>/usr/lib/fontconfig/cache</cachedir>
            <cachedir prefix="xdg">fontconfig</cachedir>
            <!-- the following element will be removed in the future -->
            <cachedir>~/.fontconfig</cachedir>
    
            <config>
    <!--
      Rescan configuration every 30 seconds when FcFontSetList is called
     -->
                    <rescan>
                            <int>30</int>
                    </rescan>
            </config>
    
    </fontconfig>

    I can reproduce the issue on https://vscode.dev using Chromium 138.

    vscode.dev reproduction

    Chromium 138 on left, Firefox 141 on right

    Image
  5. adduc commented on Aug 8, 2025

    @adduc
    Author

    After reproducing the issue in Chromium, I went down a rabbit hole trying to figure out what might be going on.

    It looks like https://issues.chromium.org/issues/416896194 and googlefonts/fontations#1496 touches on what I'm experiencing. Running both chromium and vscode with --disable-features=FontationsLinuxSystemFonts, fonts in the editor and terminal render correctly.

  6. added
    upstream-issue-linked
    chromium
    and removed
    under-discussion
    on Aug 8, 2025
  7. deepak1556 commented on Aug 8, 2025

    @deepak1556
    Collaborator

    Thanks for narrowing down the upstream issue, that is super helpful

  8. 43 remaining items

  9. added this to the On Deck milestone on Mar 4, 2026
  10. veekxt commented on Mar 12, 2026

    @veekxt

    A new discovery: it seems there are significant differences in rendering effects between different fonts. 'Dejavu Sans mono' and 'Hack' are theoretically almost identical fonts, but on my computer, 'Dejavu Sans mono' renders very poorly, while 'Hack' is closer to the rendering of older versions. If the same issue occurs on other computers, 'Dejavu Sans mono' users might consider using 'Hack'.
    'Dejavu Sans mono':

    Image

    'Hack':

    Image
  11. kowsar89 commented on Mar 12, 2026

    @kowsar89

    Robo (@deepak1556) It's been 7 months since this issue was reported. When can we expect a fix?

  12. FrankHB commented on Mar 26, 2026

    @FrankHB

    @deepak1556 It's been 7 months since this issue was reported. When can we expect a fix?

    Yep. FYI, This is not only too long to wait a fix, but also a blocker of using up-to-date version of VS Code on platforms other than Linux, because several extensions (esp. Remote Tunnel) are tightly coupled with the VS Code version and refuse to work if the versions mismatch. And the settings sync will make it totally unusable, at least by default; manual edits of settingsSync.ignoredSettings will be another source of headache and I eventually have it just for "update.mode" to turn off the auto-update of VS Code. Now I've sudo apt-mark hold code for months.

    There could be some more catastrophic effects of using settings sync and it actually destroyed my profile.json and there is no backup. Worse, profile.json has no entry to be edited on the filesystem as settings.json; so when I realized one of my recent profile would be deleted again and again by some outdated macOS installation ("outdated" is a guess for the real reason I could not figure out), I disabled the source and reset the setup totally on the problematic machine. But it is still better than nothing: I even prefer to bother such broken UE than the mess of version mismatching. (Unfortunately I met it on the same time frame of 1.107 like this; but fortunately it turned out to be unrelated to that update.)

  13. oburlaca commented on Apr 21, 2026

    @oburlaca

    Tried several fonts: Jetbrains Mono, Fira Code, Intel One Mono, Cascadia Code, Hack.

    Only Hack and Droid Sans Mono are looking more or less ok.
    Scale: 100%
    editor.fontSize: 14
    editor.fontWeight: 400

    SublimeText, Firefox renders ok. Waiting for the Chromium fix.

    long story:
    working on Windows 10 + Ubuntu VM. Finally decided to move to Linux. Got a Thinkpad T16 in order to work remotely on my Ubuntu VM. Installed Ubuntu 24.04: Nice, Great! Using WakeOnLan to turn on my Windows machine. Installed Tailscale. ... Installed VSCode, connected to Ubuntu VM on Windows, perfect, I'm happy .... but the fonts, blurry!
    Installed Ubuntu 26 beta on a Surface 3 and old Thinkpad T430s to test vscode.
    Surface 3 with 166% scale: looks perfect, crisp.
    Thinkpad at 100% scale: blurry.

    P.S. Flashed Win11 on a USB to switch back to Windows on my laptop, but don't want to go back to Win )

  14. S0yKaf commented on Apr 25, 2026

    @S0yKaf

    Reminder that googlefonts/fontations#1496 is the fix for this. So please direct your efforts there.

    And the actual issue googlefonts/fontations#1215

  15. stacygaudreau commented on Jun 27, 2026

    @stacygaudreau

    As others have mentioned, downgrading appears to be the only real solution right now. I tried the CLI switch and other settings for VS Code but it did not fix things. Only downgrading did.

  16. iansmirlis commented on Jul 30, 2026

    @iansmirlis

    I believe this should restore pixel-perfect Terminus TTF rendering once VS Code adopts Electron 44:

    https://chromium.googlesource.com/skia/+/789ec7583edcebdfedaf3095a11b290e7ec0d636

    It adds EBDT/EBLC monochrome embedded-bitmap support to Skia’s Fontations backend

  17. CendioOssman commented on Sep 4, 2026

    @CendioOssman

    Being version locked to 1.106 is getting concerning. Could we get some idea of priority from Microsoft? Is this on an active backlog? Or is it low priority and Microsoft will simply wait until Chrome decides to fix their end?

  18. wpdevelopment11 commented on Sep 16, 2026

    @wpdevelopment11

    I can no longer reproduce this issue after a migration from KDE 5 Xorg (Kubuntu 24.04) to KDE 6 Wayland (Kubuntu 26.04).
    Fonts are fine now.
    Before of that I pinned vscode to 1.106.3-1764110892 like many others here.

  19. Sembiance commented on Sep 16, 2026

    @Sembiance

    For me, with Terminus font, this issue was due to this chromium issue (thanks Ian S (@iansmirlis) )

    In addition to VScode, I had a similar fuzzy font issue with Chromium browser, for my own local websites that relied on Terminus system font.

    The updated chromium version partly fixed it. I used codex to come up with a patch for fontconfig fontconfig-2.18.3-has-bitmap-strikes.patch that fixed it the rest of the way (patch has more details about the issue).

    I combined that fontconfig patch with this ~/.config/fontconfig/fonts.conf rule:

    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
    <fontconfig>
    	<match target="scan">
    		<test name="hasbitmapstrikes" target="scan" compare="eq">
    			<bool>true</bool>
    		</test>
    
    		<test name="color" target="scan" compare="eq">
    			<bool>false</bool>
    		</test>
    
    		<edit name="antialias" mode="assign_replace">
    			<bool>false</bool>
    		</edit>
    	</match>
    </fontconfig>
    

    That fixed the issue for me entirely in Chromium.

    All my local webpages that use system installed Terminus are now super crisp just like they used to be back in the day.

    My hope is that once VSCode updates to the latest Chromium, that the same fix above for Chromium will "just work" for VSCode as well.

  20. CendioOssman commented on Sep 16, 2026

    @CendioOssman

    So that sounds like it fixes bitmap fonts, but not regular vector fonts where the hinting is not working properly.

    A partial win, but not resolved in most cases.

  21. JakeSkelton commented on Sep 21, 2026

    @JakeSkelton

    I can no longer reproduce this issue after a migration from KDE 5 Xorg (Kubuntu 24.04) to KDE 6 Wayland (Kubuntu 26.04). Fonts are fine now. Before of that I pinned vscode to 1.106.3-1764110892 like many others here.

    I don't find that to be the case after making the same update (to Kubuntu 26.04) and un-holding vscode updates. The underlying fontations merge request has not progressed, so I would've been surprised if this had worked.

  22. dmitrivMS commented on Nov 29, 2026

    @dmitrivMS
    Collaborator

    I reproduced the Terminus TTF regression in both the editor and integrated terminal on Microsoft VS Code Stable 1.148.0 and Insiders 1.149.0. I also tested the Skia bitmap fix suggested above: the same Insiders workbench renders the embedded bitmap exactly on upstream Electron 44 and 45. The separate outline-font hinting case did not show the same improvement.

    Terminus: released builds vs. upstream runtimes

    I used Ubuntu 22.04.5 userspace, a private software-rendered X11 display at 100% scale (96 DPI), clean profiles and the Unix Terminus TTF 4.49.3. I compared the 16 px sample HIMW0123456789, black on white, against the one-bit bitmap stored in the font. “Exact” means the native-resolution glyph crop matched the bitmap in both dimensions and every RGB byte, not just that it looked sharp. The renderer and X11 screen captures agreed.

    Build Editor and terminal at 16 px
    VS Code 1.102.3 Both exact.
    1.103.0 Neither exact: 347 intermediate-gray pixels in the editor sample, 192 in the terminal sample.
    1.103.1 and 1.106.3 Both exact again with the temporary FreeType mitigation.
    1.107.0 Regression returned; each sample matched its 1.103.0 counterpart.
    Stable 1.148.0 and Insiders 1.149.0 Neither exact: 347 intermediate-gray pixels in each sample.
    Same Insiders app on upstream Electron 44.0.0, 44.11.6 or 45.5.0 Both exact, zero intermediate-gray pixels. These are local runtime substitutions, not shipped VS Code builds.

    As a control, the same app launched the same way on upstream Electron 43.8.13 reproduced shipped Insiders pixel-for-pixel. Both 44 builds also matched the embedded strikes at 14 and 20 px, and 45.5.0 matched at 20 px. No fontconfig patch or anti-aliasing override was needed on this setup. On shipped Insiders, disabling anti-aliasing for just this family removed the gray pixels but did not restore the stored glyph shapes. --disable-features=FontationsLinuxSystemFonts worked on 1.103.0 but made no difference on current Insiders.

    Lossless magnification of editor, terminal, and the font’s own bitmap

    insiders-electron43-vs-44.mp4

    Outline fonts are a separate case

    With outline-only DejaVu Sans Mono at 14 px and full hinting requested, the editor pixels on Electron 43, 44 and 45 were identical to one another and different from 1.102.3. The terminal gave the same result with its renderer held constant. So the Terminus result is not evidence that the broader horizontal-hinting report is fixed; see googlefonts/fontations#1215.

    How to verify in a future Microsoft VS Code Insiders build

    1. On Linux/X11 at 100% display scale, install the Unix Terminus TTF and check that fc-match 'Terminus (TTF)' resolves to the .ttf rather than a fallback. Launch Insiders with a clean profile, extensions disabled and no font-rendering flags. Record the Electron version from Help: About.
    2. Set "editor.fontFamily": "Terminus (TTF)", "terminal.integrated.fontFamily": "\"Terminus (TTF)\"", and both font sizes to 16. Leave window zoom at its default.
    3. Put HIMW0123456789 in a plain-text file and run printf 'HIMW0123456789\n' in the integrated terminal. At 16 px both should render the font’s one-bit strike. Compare at native resolution using the lossless PNG above; repeat at 20 px.

    I recommend keeping this open and rechecking the released build after the Electron upgrade tracked in #338363. The measurements above cover the reporter’s Ubuntu X11 case, not physical-GPU or Fedora Wayland rendering, and the vector-font reports should be evaluated separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugchromiumelectron-39-updatefont-renderinglinuxregressionupstream-issue-linked

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions