-
-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement icons via alternative font(s) for consoles with limited UTF-8/emoji support #178
Comments
This sounds like a useful feature; I would appreciate pointers as to how this might be made to work. If there are icons/aspects which do not currently render, please let us know the items and environment you're in, in a separate issue :) |
@feamsr00 Do you have experience with Nerdfont? See my earlier comment. I also updated the title to better reflect your specific request. |
I have sifted through the internet, couldn't find any ways for a cli app to vendor in custom fonts. The only way to move forward with the glyphs is to either auto-detect the font support of a terminal, or provide an explicit flag to enable/disable glyphs. |
Oh hello, let me wipe the dust off here :) I do have experience as a NF user. I've used it powerline for zsh (via WSL) extensively. Truthfully the easiest way to get it to work, would be just that, detect if the font is available (OS specific of course) and set a display flag to use them instead. As for including\redist the font, I'd either use a system package installer if you intend to use one which should allow that, or include in an "extras" dir that the user can optionally drop in themselves. |
For the powerline setup, IIRC there is a configuration parameter that can be specified by the user, e.g.
This way, the user can use whichever unicode glyph they want. And no font distribution is required. |
This seems like a good idea to me. We can have a two configs - one with good emoji/glyph support and one without. |
To update this: we have started isolating the unicode we use into For those installing from git, or willing to do so from a named (tagged) version, this does mean it should already be possible to adjust the symbol style to your liking, as long as we've not missed extracting a symbol into that file that you want to adjust :) |
Simple feat req. Use NerdFont To support some consoles that don't have great UTF-8\emoji support (yet). Thoughts?
The text was updated successfully, but these errors were encountered: