Ability to choose or disable font styles #169

Closed
opened 1 year ago by g3r · 3 comments
g3r commented 1 year ago

Allow the user to either choose and/or disable font styles like bold

Allow the user to either choose and/or disable font styles like bold
dnkl commented 1 year ago
Owner

With "choose", I assume you mean "select a different font and/or style than the regular font"?

Or in FontConfig+foot speak:

What foot currently does is basically this:

font=Font-A
font-bold=Font-A:weight=bold
font-italic=Font-A:slant=italic
font-bold-italic=Font-A:weight=bold:slant=italic

Except that font-bold, font-italic and font-bold-italic isn't exposed in the configuration.

What you're suggesting is to expose these options, thus enabling the user to do something like:

font=Font-A
font-bold=Font-B:size=27
font-italic=Font-C:slant=italic
font-bold-italic=Font-D

I.e. completely custom font settings for bold/italic.

Disabling bold/italic could then be done like this:

font=Font-A
font-bold=Font-A
font-italic=Font-A
font-bold-italic=Font-A

Is that a correct interpretation?

With "choose", I assume you mean "select a different font and/or style than the regular font"? Or in FontConfig+foot speak: What foot currently does is basically this: ```ini font=Font-A font-bold=Font-A:weight=bold font-italic=Font-A:slant=italic font-bold-italic=Font-A:weight=bold:slant=italic ``` Except that `font-bold`, `font-italic` and `font-bold-italic` isn't exposed in the configuration. What you're suggesting is to expose these options, thus enabling the user to do something like: ```ini font=Font-A font-bold=Font-B:size=27 font-italic=Font-C:slant=italic font-bold-italic=Font-D ``` I.e. completely custom font settings for bold/italic. Disabling bold/italic could then be done like this: ```ini font=Font-A font-bold=Font-A font-italic=Font-A font-bold-italic=Font-A ``` Is that a correct interpretation?
dnkl added the
enhancement
label 1 year ago
g3r commented 1 year ago
Poster

Yes, exposing the options would be great, like alacritty does.

By disabling i meant something like xterm's:

XTerm*allowBoldFonts: false

But you can achieve the same by choosing the same font.

Yes, exposing the options would be great, like alacritty does. By disabling i meant something like xterm's: ``` XTerm*allowBoldFonts: false ``` But you can achieve the same by choosing the same font.
dnkl commented 1 year ago
Owner

Yes, exposing the options would be great, like alacritty does.

It's a little bit more involved than that. But, while the by far easiest thing to do, implementation wise, is a bold/italic enable/disable toggle, I think it would make sense to go the whole way, and allow the user total control over the bold/italic fonts.

> Yes, exposing the options would be great, like alacritty does. It's a little bit more involved than that. But, while the by far easiest thing to do, implementation wise, is a bold/italic enable/disable toggle, I think it would make sense to go the whole way, and allow the user total control over the bold/italic fonts.
dnkl closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.