Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to set bold font #182

Open
532910 opened this issue May 26, 2021 · 2 comments · May be fixed by #285
Open

unable to set bold font #182

532910 opened this issue May 26, 2021 · 2 comments · May be fixed by #285

Comments

@532910
Copy link

532910 commented May 26, 2021

  1. font Fantasque Sans Mono Bold 9 in .config/sway/config works fine
  2. swaynag -f 'Fantasque Sans Mono Bold 20' works fine
  3. `swaylock --font "Fantasque Sans Mono" works fine
  4. `swaylock --font "Fantasque Sans Mono Bold" uses a default font
@lokesh-krishna
Copy link

Same. The man page doesn't specify how to use different font styles. Is this unsupported or just undocumented?

@metafates
Copy link

Font rendering is configured here https://github.com/swaywm/swaylock/blob/6213fa0a7cac6da1a49f340d4999b9f6f9e82a5c/render.c#L79:L80 and it can be seen that argument CAIRO_FONT_WEIGHT_NORMAL is hardcoded. So, it's not possible to specify a different font weight via config... 😞

@metafates metafates linked a pull request Feb 7, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants