Skip to content

Multiple Fonts/Fallback Fonts #5180

Closed
@BlueFalconHD

Description

@BlueFalconHD

Check for existing issues

  • Completed

Is your feature request related to a problem?

I really love using Nerd Fonts or Powerline symbols in code to make my simple CLIs feel a little more immersive. I have problems with specific patched Nerd Fonts on MacOS, so I use a font with fallbacks in terminals and other places. The specific fonts I use in these are:

"Symbols Nerd Font Mono",
"Apple Color Emoji",

And this solves my issue in places like Wezterm where there is support for a font with multiple fallbacks.

PS: The font Victor Mono's Nerd Font, either when custom patched or downloaded from the prepatched set, isn't compatible with MacOS, and that is why I use Symbols Nerd Font Mono.

Describe the solution you'd like

I would like to see a font with fallback implementation come to Zed. Maybe just a way to pass in an array to buffer_font_family that uses the first font as the main font like normal. But then any after that would stand in for missing characters that don't exist in the main font.

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

In Wezterm, with my font with fallback configuration set, I get this when running my alias to exa -A --icons (exa is a modern replacement to LS with better colors and icon support).
image
In Zed however, I cannot set a font with fallback, so Zed replaces the characters that don't exist in Victor Mono, my main font, with small unknown icons to show it cannot find that glyph.
image
My proposed solution would make my config look like:

{
    "buffer_font_size": 13,
    "buffer_font_family": ["Victor Mono", "Symbols Nerd Font Mono", "Apple Color Emoji"],
    "autosave": "on_focus_change",
    "vim_mode": true
}

And it would make the output In Zed and Wezterm match.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature[core label]fontFont feedback for readability, size, style, etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions