Problem with weather icons
blackbart420 opened this issue · 5 comments
Hello again @kamek-pf
Sorry to bother you but I now have some troubles with the weather icons font.
I installed the font package but it seems the module isn't using the font.
You'll see your weather module on the bottom right of the screenshot
Do you know how I could fix this ?
Hey ;o
Pretty sure this is due to how Polybar chooses which font to apply when rendering something.
If I remember correctly, it's looking at all the fonts you defined in your Polybar config (in order) and stops as soon as one of them is able to render the glyphs.
In my own config, this is what I have :
font-0 = NotoSans-Regular:size=16;-1
font-1 = MaterialIcons:size=21;2
font-2 = FiraCode:size=16
font-3 = Weather Icons:size=18;1
font-4 = FontAwesome:size=16
You should try moving Weather Icons
a few lines up, before the other icon fonts and see what works for you.
Hello @kamek-pf
Thank you very much for your answer !
I did not define the weather font in my polybar config.
Now I added this line to my bottom bar config :
font-9 = Weather Icons:size=12;1
and set this in your module/weather polybar config :
label-font = 10
And now it works fine. Thanks for your time, that's a great module :)
Solved for me too, thanks!
Mine conflicts with font awesome.
If I put weather icon above font awesome, some of the font awesome's icon will be replaced.
I have to manually set the label-font.
Mine conflicts with font awesome.
If I put weather icon above font awesome, some of the font awesome's icon will be replaced.
I have to manually set the label-font.
Same problem here !