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
41.66k stars 2.17k forks source link

Include nerd font glyphs in Zed Mono #5055

Open diktomat opened 1 year ago

diktomat commented 1 year ago

Check for existing issues

Describe the feature

I kinda like the font Zed is shipping with, Zed Mono, but it's currently not completely fit for also using in the builtin terminal, as I make heavy use of extra glyphs (like in Nerd Fonts) both in my prompt and various applications. It would be nice if Zed Mono could become a “Nerd Font”!

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

No response

iamnbutler commented 1 year ago

Hey! Sadly we'll be moving away from Zed Mono (Iosevka) for now due to some technical issues. The base font we build Zed Mono from (https://github.com/be5invis/Iosevka) is massive and was causing issues for us in a variety of places, so it is unlikely we will do this.

However, we leaning towards shipping fira-mono for now, and I'm pretty sure it has a nerd font already.

diktomat commented 1 year ago

A probably even better alternative would be to support either fallback fonts for symbols not included in the main font to be loaded from for example the symbols only nerd font, or mapping specific unicode code points to another fonts. Both options would 1. eliminate this problem for all fonts one could use and 2. provide even more flexibility for other use cases one might need.

Btw, thanks for pointing me to Iosevka, using it everywhere now :D

SilentGlasses commented 1 year ago

IMHO, I think Victor Mono looks better and it already has a Nerd variant. https://www.programmingfonts.org/#victor-mono

Tom-Boscher commented 9 months ago

Any update about terminal icon integration?

jansol commented 9 months ago

Rather than integrating the huge icon set into yet another font I'd have configurable fallback fonts (i.e. zed-industries/zed#5180) so you can se Symbol Nerd Font as a fallback so you can use the symbols along with any unpatched font you want and save a fair bit of space while at it. This is also beneficial if you deal with emoji (want a specific emoji style?) or multiple different scripts since fonts that cover more than one or two scripts are far and between.