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
49.5k stars 3.02k forks source link

Bitmap emoji fonts do not render #15925

Open nt8r opened 3 months ago

nt8r commented 3 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Fonts such as the Samsung Emoji font can be selected as fallback fonts, but emoji render as unfilled rectangles rather than displaying the actual emoji glyph. The font in question is a .ttf containing bitmap symbols (fc-query states outline: False(s) and scalable: True(s)). The font is accepted in the font settings and listed in the acceptable values for those settings.

If I install a SVG-based emoji font, such as Noto Emoji, then that font will be used regardless of preferences.

Environment

Zed: v0.149.0 (Zed Dev 6f6eeb65954bb96954522deb330e40b746075ba6) OS: Linux Wayland arch unknown Memory: 15.3 GiB Architecture: x86_64 GPU: Intel(R) Xe Graphics (TGL GT2) || Intel open-source Mesa driver || Mesa 24.1.5-arch1.1

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.

Zed.log


nt8r commented 3 months ago

I don't believe this is the same as #12629 because the font in question is a .ttf, but possibly there is some overlap.

gbatiz commented 2 months ago

I have tried this with many kinds of fonts, and it is consistently broken. We use emojis in markdown docs quite a lot, and my main use-case for using zed would be note taking and markdown editing.

System: Arch Linux, latest + Zed 0.149.3 (installed from arch-extras)

See comparison with Sublime Text image