zed icon indicating copy to clipboard operation
zed copied to clipboard

Zed always using lightest variation of font

Open KTibow opened this issue 7 months ago • 4 comments

Summary

Zed is incorrectly always using the lightest variation of font.

Description

I'm on Linux. I have Monaspace Neon (specifically MonaspaceNeonVarVF[wght,wdth,slnt].ttf) installed, and I told Zed to use it with "buffer_font_family": "Monaspace Neon Var". However, it's using the lightest variant of it instead of the regular variant. Even if I set "buffer_font_weight": 800, it still uses the lightest weight instead of the selected weight.

Zed Version and System Specs

Zed: v0.182.11 (Zed) OS: Linux Wayland ubuntu 25.04 Memory: 14.2 GiB Architecture: aarch64 GPU: Adreno X1-85 || turnip Mesa driver || Mesa 25.0.3-1ubuntu2

KTibow avatar Apr 20 '25 01:04 KTibow

i had a similar problem using the variant version of JetBrains Mono. My workaround was to install each different style (regular, medium, bold, etc...) separately.

cloudUser98 avatar Apr 20 '25 15:04 cloudUser98

I am able to adjust font weight but adjustment isn't analog as expected.

"buffer_font_weight": 500 seems to have no effect (very light weight) but "buffer_font_weight": 510 is very heavy weight.

Fedora Linux 42 (Gnome / Wayland) Zed Preview 0.184.8

skewty avatar Apr 30 '25 15:04 skewty

Additionally, font weight seems to be different between Light and Dark mode.

510 is far heavier in dark mode than it is in light mode.

skewty avatar Apr 30 '25 15:04 skewty

Issue may be related to the font files themselves.

The font weight issue I reported above was using "IBM Plex Mono" (in Fedora repos). After changing to "JetBrains Mono" (in Fedora repos) font weight adjustment seems analog / to apply as expected.

Hopefully this helps some people out.

skewty avatar Apr 30 '25 15:04 skewty

I think this is likely a duplicate of:

  • https://github.com/zed-industries/zed/issues/30383

Please 👍 and subscribe to track progress.

notpeter avatar Jul 01 '25 20:07 notpeter

This issue came first but okay

KTibow avatar Jul 01 '25 21:07 KTibow