vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Sidebar icons look bold/with incorrect width and incorrectly rendered

Open jorgeperezlara opened this issue 7 months ago • 5 comments

Does this issue occur when all extensions are disabled?: Yes (I performed a reset of VSCode as a whole)

VS Code Version: 1.95.3
OS Version: Fedora 41.

Steps to Reproduce:

Once you open the Window. It becomes clearly apparent, as shown in the screenshot. I believe it's linked to https://github.com/microsoft/vscode/issues/129988#issue-958437012 but I don't seem to be able to see how to fix it. I've tweaked the font rendering of my default distro (Fedora 41) to no avail.

I'm trying to reopen #234493 here, but I was unable to get it reopened, so I'm duplicating it here. Good news is that setting FREETYPE_PROPERTIES=autofitter:no-stem-darkening=1 environment variable as suggested by @xBZZZZ seems to solve it. How can it be made permanent?

Additionally, @deepak1556, where can I check the configuration values of gtk-xft-hinting and gtk-xft-hintstyle?

Image

jorgeperezlara avatar May 22 '25 20:05 jorgeperezlara

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.100.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

does environment variable FREETYPE_PROPERTIES exist by default for you?

xBZZZZ avatar May 22 '25 20:05 xBZZZZ

Hi! It does have still the problem.

Image

jorgeperezlara avatar May 22 '25 20:05 jorgeperezlara

does environment variable FREETYPE_PROPERTIES exist by default for you?

Hi! Didn't see this message.

Yes! printenv throws (among some other stuff) the following: FREETYPE_PROPERTIES=cff:no-stem-darkening=0 autofitter:no-stem-darkening=0. I understand changing the environment variable would fix it, but I worry about the effects it might have over other stuff...

Maybe @deepak1556's solution would be a better thing? I'd rather have a clean solution than a dirty workaround hack...

jorgeperezlara avatar May 23 '25 03:05 jorgeperezlara

try running vs code with --enable-features=FontationsFontBackend command line agrument

xBZZZZ avatar May 23 '25 06:05 xBZZZZ

Fixed it as well!!! How can I make it permanent?

jorgeperezlara avatar May 25 '25 18:05 jorgeperezlara

How can I make it permanent?

I don't know. I use shell scripts to start vscodium and other electron programs:

#!/usr/bin/dash
exec /path/to/codium \
--force-color-profile=srgb \
--enable-features=FontationsFontBackend

xBZZZZ avatar May 25 '25 21:05 xBZZZZ

Thanks, clear!

Hopefully someone can support here...

jorgeperezlara avatar May 26 '25 19:05 jorgeperezlara