Conversation
bhilburn
left a comment
There was a problem hiding this comment.
Would like to address these comments before merge.
| # fontconfig with awesome-font required! See | ||
| # https://github.com/gabrielelana/awesome-terminal-fonts | ||
| # if not defined, set recommended linux path | ||
| typeset -p "POWERLEVEL9K_FONTAWESOME_PATH" > /dev/null 2>&1 || POWERLEVEL9K_FONTAWESOME_PATH=~/.fonts |
There was a problem hiding this comment.
We have a lot of OSX users, and I'm concerned this will break things for them. However, looking at the "Awesome Font" installation instructions for OSX, it doesn't talk about installing these scripts, anywhere.
We either need some OSX users to weigh-in, here, or even better if we could get @gabrielelana's thoughts on how to handle this for OSX, that would be even better.
There was a problem hiding this comment.
Yep, unfortunately AFAIK on OSX doesn't work like that, and it's even more difficult with Sierra. Anyway, the mapping part is good even for OSX, the environment variable above probably doesn't work but it's harmless, I don't think it will "break" anything
@bhilburn what do you think it will break?
There was a problem hiding this comment.
@gabrielelana - Thanks for the response! The piece I don't understand for OSX is where is the *.sh script that we need to execute to get the mapping variables? I'm assuming that is a requirement on OSX, as well?
There was a problem hiding this comment.
@bhilburn Yes, you need them on OSX as well, I guess we can keep them in the same place as on Linux (aka ~/.fonts directory), I will integrate my documentation to tell OSX users to always copy the mapping files
There was a problem hiding this comment.
@gabrielelana - Okay, awesome. Can you let us know once the Awesome docs are updated? If I merge this before that's done, we are both likely to get hammered with support issues :)
There was a problem hiding this comment.
@gabrielelana - Just checking in on this :) We can't proceed on our end until OSX has the script in the user directory, otherwise we'll break everything for a large number of users.
There was a problem hiding this comment.
Btw. the docs are already updated: gabrielelana/awesome-terminal-fonts@1397337
Thx. @gabrielelana 👍
| SSH_ICON '(ssh)' | ||
| ) | ||
| ;; | ||
| 'AdobeSourceCodePro') |
There was a problem hiding this comment.
So, creating icon sets is cheap for us. Since only the one that the user actually specified actually gets loaded, we can specify as many as we want without burdening the user. I should have just created this font set ages ago instead of telling SourceCodePro users to use awesome-fontconfig, because now this is going to break.
Which takes me to my question: in awesome-fontconfig, is there a way we can have ZSH fall-through to the next option, AdobeSourceCodePro, if the Awesome Font scripts aren't found? This would be fairly easy if there was something like a continue statement, but I actually can't find any documentation of that for ZSH. Thoughts, @dritter?
There was a problem hiding this comment.
We could print an error if the scripts aren't found, with a hint to this page or the troubleshooting page, but I don't think we should silently fallback on AdobeSourceCodePro, that would make it uneasy for us in the future
There was a problem hiding this comment.
Hmm. I think the easiest way is to rename the icon sets.. I would leave the old one awesome-fontconfig and rename the new one to something like awesome-fontmap or awesome-mapped-fontconfig.
That way we can leave the old way like it is and recommend every user that has trouble with updated fonts to use the new one with the maps.
Btw. IMHO we should favour the new mapped way over the old one and reflect that in the documentation.
|
Ok, every icon is working for me :) |
|
Thanks for the fix, but unfortunately I'm away from my computer on holidays right now. I'm definitely happy to help test, but it might be ~2 weeks from now. |
|
I'm back from holidays… 🙂 This seems to work well for me! Thank you! FWIW on Arch Linux, the default package-manager–installed location for the awesome-terminal-fonts I'm not sure if that would be universal enough (even in Linux) to set as a default, though. Thanks for the PR! |
|
Thanks for testing, @protist! Okay, it seems like the code-points themselves are ready to go (makes sense since they are just @V1rgul's commits), but we have an issue with regard to installation path of the the font-mapping script. If we can't find the script, and thus execute it, we will break things for a lot of users. There is the obvious fix of users simply finding the script themselves and symlinking it into a location where we are looking, but that is: a) A painful user experience. It's clear that using the script that @gabrielelana packages is the correct way to do this, but we need to be sure that we aren't making things more difficult for our users. Unfortunately, I don't know how to do this without just making a giant list of directories to check (it's not like this is going to be in pkgconfig or in the env). Any other ideas, here? |
|
No worries @bhilburn! It's probably not useful, but it looks like the |
|
@bhilburn sorry to be so late, I have updated the |
dritter
left a comment
There was a problem hiding this comment.
Strange. I thought I reviewed this PR a while ago.. Seems like I just left comments.
Anyway. My recommendation is to add this icon set under a new name, so that we can leave the old awesome-fontconfig as it is and users of that won't have a bad experience.
The docs should be changed to recommend the new icon set with font maps.
What do you think @bhilburn ?
This is the PR effort that merges @V1rgul's #385, which we need as soon as possible.
It is separate from #385 because I added a new icon set for
AdobeSourceCodePro, for which we were previously telling users to useawesome-fontconfigsince the codepoints lined up reasonably well. That was a mistake on my part, and now we are going to break this for those users.More on this in the review that I'm about to leave. I would like to resolve my review comments before completing this merge.
@V1rgul - Your testing of this branch will be critical. It would also be great to get @protist testing this.