zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.1k stars 3.07k forks source link

Linux: Zed cannot find user fonts #14324

Open rpbaptist opened 4 months ago

rpbaptist commented 4 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

My fonts are in $HOME/.local/share/fonts, but Zed cannot see them.

When I try to set my font to one of these I see an error and it states all the fonts it found on my system, but my user fonts are missing.

Environment

Zed: v0.143.7 (Zed) OS: Linux X11 ubuntu 24.04 Memory: 31 GiB Architecture: x86_64

florenzthedev commented 3 months ago

I think I have run into this issue as well and wanted to provide more insight. Zed is only missing some but not all of the fonts installed to $HOME/.local/share/fonts for me. I have several fonts installed there, Atkinson Hyperlegible is detected and can be used but Intel One Mono is completely missing. Both fonts show up in other programs and in fc-list, both fonts are OTF not TTF.

Environment

Zed: v0.146.5 OS: Linux Wayland Debian 12 Memory: 16GB Architecture: x86_64

florenzthedev commented 3 months ago

It looks like this was an issue with cosmic-text and is fixed in the newest release of cosmic-text. I have created a pull request to update cosmic-text:

notpeter commented 1 week ago

Here's the upstream issue I think we're waiting on: