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.35k stars 3.1k forks source link

Unable to Display Host Fonts When Running in Flatpak Sandbox #20026

Open NN708 opened 2 weeks ago

NN708 commented 2 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Despite fc-list showing that host fonts such as Noto Sans CJK SC are available within the Flatpak sandbox, Zed is unable to display these fonts, resulting in tofu characters.

$ fc-list
...
/run/host/fonts/opentype/noto/NotoSansCJK-Regular.ttc: Noto Sans CJK SC:style=Regular
...

Screenshot

Steps to Reproduce

  1. Install Zed from Flathub.
  2. Disable Flatpak sandbox escape using flatpak override --user dev.zed.Zed --env=ZED_FLATPAK_NO_ESCAPE=1.
  3. Launch the application and input CJK characters or emojis.

Environment

Zed: v0.159.5 (Zed) OS: Linux Wayland org.freedesktop.platform 24.08 Memory: 11.4 GiB Architecture: x86_64 GPU: Intel(R) Graphics (ADL-N) || Intel open-source Mesa driver || Mesa 24.2.5 (git-3b9fcb7e4d)

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

No response

NN708 commented 5 days ago

This issue may have been fixed in the upstream repository via https://github.com/servo/font-kit/pull/256. Could you please update this module to include those changes and test it?