Skip to content

Wrong Font Feature Application #44209

@dinocosta

Description

@dinocosta

Reproduction steps

  1. Update buffer_font_family with a font that supports features
  2. Update ui_font_features to enable a distinctive feature present in the buffer_font_family
    In my specific case, I'm trialing MD IO, where the ss02 feature, when enabled, will render numbers inside a circle, so I enabled ss02 in the ui_font_family
  3. Open any file tracked by git, where the inline blame element is rendered
  4. Confirm that the text in the inline blame, even though it's using the font family defined in buffer_font_family, is using the ui_font_features

Current vs. Expected behavior

Current Behavior

The font features defined in the ui_font_features are being applied to the buffer_font in certain editor elements, for example, in the inline git blame ▼

Image

Expected Behavior

When the buffer_font is in use, only the buffer_font_features should be applied.

Zed version and system specs

Zed: v0.217.0+nightly.1988.d6241b17d35c4eae1d23dfbde16cae0eb8187ac2 (Zed Nightly d6241b1)
OS: macOS 26.1
Memory: 36 GiB
Architecture: aarch64

Attach Zed log file

No response

Relevant Zed settings

settings.json
{
    "buffer_font_family": "MD IO Trial",
    "ui_font_features": {
        "ss02": true
    }
}

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

Labels

area:ui/fontFont feedback for readability, size, style, etcfrequency:alwaysBug that happens for everyone on every platform no matter how they use Zedpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions