-
Notifications
You must be signed in to change notification settings - Fork 46
Can't get icons to show up #201
Comments
The default sample bar assumes that icon fonts have been cloned to Having the fonts installed is not enough, because sometimes the fonts change which icons are assigned to which codepoints. So it's important to have the matching version of the codepoints file available as well. The simplest way to ensure that is to clone the font repository and install a symlink of the font, so that anytime the repo is updated, the installed font is automatically updated as well. See https://barista.run/pango/icons#default-installation for more details. Hopefully that works for you. |
Would be neat to have an example of using Go 1.16's |
Technically barista doesn't need the font files, the status bar program does. There's no format for embedding icons in the i3bar protocol, so the best we can do is use pango fonts. But that requires the font to be available at runtime. While we could embed the codepoint files, that would mean rebuilding the bar anytime the fonts update. Instead, I prefer to read the codepoints file at runtime so that fonts can be updated more frequently without issues. (The codepoint file must correspond to the version of the font being loaded by the status bar program) |
Ah, thanks for the explanation At the moment I have the fonts themselves managed by my distribution's package manager, and I'm separately/manually using |
I ran into this issue because I was using font-awesome 6. I have a fork where I've updated the fontawesome subpackage to use FA-6. Let me know if you want me to PR it and how. (I just changed the number, realistically we'd probably have to find a way to fallback and support both to avoid breaking changes.) |
@taigrr If you send a PR that uses |
Great, and I'll leave the fa- as-is, but should I also add fa-5 as syntactic sugar to make it easier for people to be explicit? |
Up to you 😉 |
I just found out about this project and quickly tried out the sample bar provided. Seems to work as advertised, but for some reason the icons don't show up for me. I all the steps in the example (although I already had some of the icon fonts), mine are installed in .local/share/fonts instead of .fonts, but that shouldn't matter. But they don't show up.
Any ideas what I could do?
The text was updated successfully, but these errors were encountered: