zed icon indicating copy to clipboard operation
zed copied to clipboard

Bitmap emoji fonts do not render

Open nt8r opened this issue 1 year ago • 2 comments
trafficstars

Check for existing issues

  • [X] Completed

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 avatar Aug 07 '24 19:08 nt8r

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

nt8r avatar Aug 07 '24 19:08 nt8r

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

gbatiz avatar Aug 21 '24 14:08 gbatiz

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar Mar 18 '25 11:03 github-actions[bot]

This bug still reproduces. Stale bots are user-hostile.

nt8r avatar Mar 19 '25 18:03 nt8r

The emoji font works on the latest preview version of Zed:

Screenshot of Zed text editor with emoji font

However, I want to choose a favourite emoji font for fallback font. This current text editor is using Noto Emoji font and does not let me pick OpenMoji COLRv0. Other text editor allows me to choose it.

gusbemacbe avatar Apr 24 '25 23:04 gusbemacbe

@gusbemacbe for what it's worth, COLRv0 is not a bitmap font, but it does seem likely that the font rendering stack used by Zed might be missing support for it. But that's probably a separate problem considering that the settings do allow the selection of bitmap emoji fonts; they just render incorrectly.

nt8r avatar Apr 26 '25 17:04 nt8r

Good morning, @nt8r! Shall I create a separated problem issue here and report this problem?

gusbemacbe avatar Apr 27 '25 14:04 gusbemacbe

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar Aug 27 '25 07:08 github-actions[bot]

At this point, I'm just gonna unsubscribe. VSCode with a dedicated text editor profile is more than capable for my use case.

gbatiz avatar Aug 27 '25 09:08 gbatiz

This bug is still reproducible. Stale bots are still user-hostile.

nt8r avatar Aug 27 '25 18:08 nt8r