loserMcloser / waylogout

MIT License
35 stars 2 forks source link

rectangles instead symbols #5

Closed 532910 closed 1 year ago

532910 commented 1 year ago

I see just rectangles instead symbols. font=FontAwesome sway 1.7-6 debian sid

swaylock with

font=FontAwesome
datestr=

show power off symbol successfully

loserMcloser commented 1 year ago

This project uses the font setting for the text font, FontAwesome is used for symbols automatically.

Does example command work for you?

532910 commented 1 year ago

IMG_20230130_132851

loserMcloser commented 1 year ago

What version of FontAwesome are you using? This project requires FontAwesome 6 Free, but all I see in Debian Sid is fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1), and the page for that package says

Please note that this package provides Font Awesome 4 (not Font Awesome 5 or Font Awesome 6 which are different fonts with different licensing).

532910 commented 1 year ago

I have copied a power symbol from the main.c and put in swaylock config, and it shows it successfully using Font Awesome from debian, thus I believe the issue is not in the debian font.

532910 commented 1 year ago

OK. I have downloaded v4 and put fontawesome-webfont.ttf and FontAwesome.otf to ~/.local/share/fonts, fc-list see them:

% fc-list | grep -i aweso
/usr/share/fonts/opentype/font-awesome/FontAwesome.otf: FontAwesome:style=Regular
/home/sergio/.local/share/fonts/fontawesome-webfont.ttf: FontAwesome:style=Regular
/usr/share/fonts/truetype/font-awesome/fontawesome-webfont.ttf: FontAwesome:style=Regular
/home/sergio/.local/share/fonts/FontAwesome.otf: FontAwesome:style=Regular

but waylogout still shows rectangles

532910 commented 1 year ago

Moreover, debian package version is 5.0.10+really4.7.0~dfsg-4.1, that means it's 4.7 really.

loserMcloser commented 1 year ago

I had the font name for Font Awesome hardcoded to "Font Awesome 6 Free" but I've now added an option (fa-font) to specify the name for your Font Awesome font.

So try updating your git repo for waylogout to the latest commit (291c70b), rebuilding, and then running with option --fa-font="FontAwesome" which should match the name of your Font Awesome package on Debian.

532910 commented 1 year ago

Awesome! Thank you!