Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Cannot get fontawesome icons to work

Open japhir opened this issue 8 years ago • 12 comments

Most icons don't show, and some show up as weird curly characters. I've tried to add a FontAwesome5Free line to my style, and I've played around with workspace names in my sway config + waybar config but I cannot get it to work. I've also re-installed fontawesome, but to no avail.

japhir avatar Dec 03 '18 11:12 japhir

Did you install otf-font-awesome? the others seem to be bugging...

Alexays avatar Dec 03 '18 19:12 Alexays

I installed otf-font-awesome, removed ttf-font-awesome, rebooted and also adjusted style.css, but it appears not to work. Are there any diagnostic commands I can run?

japhir avatar Dec 03 '18 23:12 japhir

BTW, I'm not sure if it's reading my config correctly, since it still gives me a message Disabling module "battery#bat2, No battery named BAT2 even though I omit the module from my config.

japhir avatar Dec 03 '18 23:12 japhir

For me it works with just in style.css font-family style: Roboto, Helvetica, Arial, sans-serif; and otf-font-awesome

Alexays avatar Dec 04 '18 07:12 Alexays

With the latest update at least I'm certain it's loading my config (since when I launch it from terminal it tells me so, and it updates). I've managed to get some custom-module action going, but the fonts still don't work. They do work back home on my desktop, so I'll try to see if I can find what I've done differently there.

I guess this slightly relates to #107. Maybe the AUR package can list otf-font-awesome as an opt-depend?

japhir avatar Dec 04 '18 10:12 japhir

Added otf-font-awesome as a optdepend in the PKGBUILD

Alexays avatar Dec 17 '18 08:12 Alexays

Just adding a comment since I ran into this as well. This was due to the font I was using. Certain Fonts override the font awesome fonts. To check if yours is one of those go to nerd fonts and see if there is a patched version for you. The font I used DejaVu Sans Mono needed to use a patched version for icons to show.

https://github.com/ryanoasis/nerd-fonts

alexthebuilder avatar Feb 02 '19 00:02 alexthebuilder

Even with otf-font-awesome installed, I only get some of the icons. In particular the volume icons don't work. If I change the font family to "Font Awesome 5 Free" they work, but that seems less than desirable.

tmccombs avatar Dec 21 '19 09:12 tmccombs

I had the very same problem and the way I fixed it is to append Font Awesome 5 Free to the font-family in the style.css, like so:

font-family: Ubuntu, "Font Awesome 5 Free";

tukusejssirs avatar Jul 08 '20 17:07 tukusejssirs

For the people like me using fedora, it seems that the font provided by the offical repos is incomplete. I had to download and manually install FontAwsome from the official website, and then append "Font Awesome 5 Free" in style.css, as initially proposed by tukusejssirs. ~~EDIT: this did bring back the charging icon, but not the volume one or the temperature~~ Afterwards, if one has still broken icons such as temperature or volume, it may be because sans serif conflicts with FontAwesome. I decided to install the roboto font and remove the other fonts from the style.css

Scafir avatar Oct 17 '20 13:10 Scafir

@Scafir, I did it the same way as you did (also use Fedora), however, I can presumahly all icons, incl charging, volume and weather icons.

tukusejssirs avatar Oct 18 '20 06:10 tukusejssirs

@Scafir, I did it the same way as you did (also use Fedora), however, I can presumahly all icons, incl charging, volume and weather icons.

@tukusejssirs Problem solved, it was because of a conflict between sans serif (in the default config) and fontawesome. I should have suspected it but this is definitely finicky.

Scafir avatar Oct 19 '20 17:10 Scafir