-
Notifications
You must be signed in to change notification settings - Fork 938
Icons: The Masterplan #97
Comments
@tcbbd: Do you want to implement the "interim solution"? You just need to merge your changes from master...tcbbd:master into the |
@dritter - So, to make this even more complicated, I think there are additional things we need to consider. For example, I would bet many of our users use other programs that rely on specific code points, like vim-airline, or folks with fancy tmux configs now using powerline. All of these require the terminal to have the appropriate font set, and if we require a font that then breaks any of the code points in these other common programs, things are problematic. Is the primary issue with nerd-fonts the unstable code points? I also wonder if we could chat with the other developers working on these projects and coordinate something that makes sense. I believe the people involved would be: Nerd Fonts: @ryanoasis |
Let me know what I can do to help out. Cheers! 😄 |
@bhilburn Not really. I made an issue up regarding unstable code points, but in total they are quite stable. I think there is no good solution for this. The root cause is the use of private code points that lead to collisions between fonts, which we cannot prevent.. It is crucial for a font to stay as close as possible to the code points of the original font so that users could use different projects which require special fonts (e.g. tmux and vim-airline). |
Yes, that is correct: https://github.com/ryanoasis/vim-devicons I didn't know what I was getting into with customizing fonts 😈 it is both fun and frustrating... just like everything worth doing is I suppose 😆 |
I would also like to add the Windows users tend to get left in the dust. There is only a tiny set of fonts that seem to work on Mintty - which is used by Cygwin and Babun. And as far as I know, Cygwin/Babun is the only way you can get Zsh on Windows. The font I am currently using is DejaVu Sans Mono for Powerline. It works for default just fine. But I haven't gotten any of the awesome or nerd fonts to display all symbols (tried many fonts). So going forward, it would be nice to make sure there is some testing done on the Windows side (which I would be more than happy to do). Fonts that many people say work fine on Windows - usually still have some icons missing. |
I am still alive 😜 but busy recently. Seems like getting the fonts working better (or just plain working at all) in Windows would be a priority. Thanks |
Let me know if you need someone to test it out. I would really like to see nerd-fonts working on all platforms. |
Short answer: Yes! 😄 I want to get it working better cross-platform too, I just don't really test much on Windows 😟 as much as I should and I do not currently have a Mac. |
This will be really interesting also once the new Windows build comes out with new Linux subsystem. |
@ryanoasis you can count me in for both MacOS and Ubuntu! |
Related to all of this... I've got nerd-fonts installed on mac os and used for non-ascii characters in iterm... and can see the awesome icons when I run an echo command. For example:
I see the nerd-font patched pomodoro tomato... When I try to use that same unicode in a custom format string for powerlevel9k, I see the unicode replacement black diamond and question mark. However, I'll also get a the awesome fonts for some unicode characters, like |
I'm actually wrestling with nerd-fonts in windows. At the moment I've got good results with Hack/Knack but I had to rewrite a lot of icons because they are located at different points and a lot of them won't work in putty (I choose an icon in the character map and get a different letter or symbol, or nothing, on the terminal) ` ` It's unfinished and the comments doesn't reflect the actual glyph, but it's a good start for me maybe there is some collision problem because of using different font sources, a good idea could be create a single glyph source from devicons,octoicons,pomodoro etc and a selection of the massive fontawesome EDIT Just to mention that the setup above works perfectly also on OSX, with iTerm2 I can choose my Terminus TTF (linked in the issue I wroke above) as main font, and Knack for non-standard glyph On linux I still need to try, but fontconfig method was working, I have to check if the glyphs retain the same address |
Hey @lcorsini! We wanted to check-in on how your nerdfont integration is going with PL9K. We were discussing whether or not it would be worthwhile to go ahead and try to get support for them merged into the upstream, and just specify a specific release until the codepoints stop churning. Based on your experience with them, what are your thoughts? |
Hi, |
Closing this one out since we have nerdfonts as of v0.6.0! |
As you requested in #91 , here is the masterplan to get to stable icons. I'll describe it here from the beginning, it may serve as possible explanation for other users.
Documentation
Introduction
This theme uses special icons to look fancy. So we need special fonts to display these special icons correctly. There are two ways to use these fonts:
POWERLEVEL9K_MODE
s: default, compatible and awesome-patched.Here I focus on the first (pre-patched) way, because even this is the easier method, some parts must be understood.
Installation
Three parts play a role to display the theme correctly:
POWERLEVEL9K_MODE
.For the
default
-mode, you just need a powerline-patched font. Forawesome-patched
, you need a awesome-patched font.Unfortunately, there is no way to detect the used font automatically because the shell doesn't know much about how to render its content.
Masterplan
Far-future plan
As the
awesome-terminal-fonts
are not the only project which offer a broad range of pre-patched fonts and besides look somewhat inactive, I think the best would be to switch to nerd-fonts. They seem to be more active, have stable codepoints over different stategies, more icons. On the downside, they have some serious issues which need to be fixed first.The other long-term solution could be to unify the codepoints in the different strategies in the
awesome-terminal-fonts
project.Status: Open
Interim solution
awesome-terminal-fonts
are currently problematic, as the relocate all codepoints regardless whether this is necessary or not. The result is that the fallback-, patched- and original fonts all have different codepoints. To relieve the pain a bit for our users, we could offer a newPOWERLEVEL9K_MODE="awesome-fallback"
, which is a new set of codepoints in theicons
-variable. I would think this could be the codepoints from master...tcbbd:master . This isn't a pretty solution, but the quickest.Status: Done. See #108
@bhilburn I hope that helped to clear my plan up. ;)
The text was updated successfully, but these errors were encountered: