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

Option to specify font styles. #232

Open
pslobo opened this issue Jul 29, 2021 · 3 comments
Open

Option to specify font styles. #232

pslobo opened this issue Jul 29, 2021 · 3 comments

Comments

@pslobo
Copy link

pslobo commented Jul 29, 2021

This issue is a....

[ ] Bug
[x] Other kind of issue (Please describe in detail)

Current Behavior

I'm trying to define font styles/variants for the various text options (time, date, verify etc.) and haven't managed to get this working. I may be missing something (new user so some things still foreign to me), but I've tried various things.

Testing with Roboto for instance, this is the list of fonts and styles. As you can see, the font name is always the same, just the style and path vary.

/usr/share/fonts/TTF/Roboto-Medium.ttf: Roboto:style=Medium
/usr/share/fonts/TTF/Roboto-MediumItalic.ttf: Roboto:style=Medium Italic
/usr/share/fonts/TTF/RobotoCondensed-Bold.ttf: Roboto Condensed:style=Bold
/usr/share/fonts/TTF/Roboto-ThinItalic.ttf: Roboto:style=Thin Italic
/usr/share/fonts/TTF/Roboto-Regular.ttf: Roboto:style=Regular
/usr/share/fonts/TTF/Roboto-BoldItalic.ttf: Roboto:style=Bold Italic
/usr/share/fonts/TTF/RobotoCondensed-BoldItalic.ttf: Roboto Condensed:style=Bold Italic
/usr/share/fonts/TTF/RobotoCondensed-Regular.ttf: Roboto Condensed:style=Regular
/usr/share/fonts/TTF/RobotoCondensed-LightItalic.ttf: Roboto Condensed:style=Light Italic
/usr/share/fonts/TTF/Roboto-Light.ttf: Roboto:style=Light
/usr/share/fonts/TTF/RobotoCondensed-Italic.ttf: Roboto Condensed:style=Italic
/usr/share/fonts/TTF/Roboto-BlackItalic.ttf: Roboto:style=Black Italic
/usr/share/fonts/TTF/Roboto-Italic.ttf: Roboto:style=Italic
/usr/share/fonts/TTF/Roboto-Bold.ttf: Roboto:style=Bold
/usr/share/fonts/TTF/Roboto-LightItalic.ttf: Roboto:style=Light Italic
/usr/share/fonts/TTF/RobotoCondensed-Light.ttf: Roboto Condensed:style=Light
/usr/share/fonts/TTF/Roboto-Black.ttf: Roboto:style=Black
/usr/share/fonts/TTF/Roboto-Thin.ttf: Roboto:style=Thin

I've tried variations like --time-font="Roboto Thin" and --time-font=Roboto-Thin and nothing seems to work as expected.

Expected Behavior

Expected to be able to define font variants/styles.

Environment

Output of i3lock --version:

i3lock version: 2.13.c.3

Where'd you get i3lock-color from?

[x] AUR package (aur/i3lock-color-git)
[ ] Built from source yourself
[ ] Other (Please describe in detail)
@Raymo111
Copy link
Owner

Raymo111 commented Aug 10, 2021

Try escaping the space with a backslash (\)? It works with --time-font=Nunito\ sans for me 🙂

@pslobo
Copy link
Author

pslobo commented Aug 26, 2021

Got this working with "Roboto:style=Thin" for others wondering too.

@Raymo111
Copy link
Owner

Nice! I'll add that into the manpage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants