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

Bold Italic? #85

Open
matype opened this issue Sep 2, 2024 · 8 comments
Open

Bold Italic? #85

matype opened this issue Sep 2, 2024 · 8 comments

Comments

@matype
Copy link
Member

matype commented Sep 2, 2024

Why

  • to complete the RIBBI set
  • sometimes uses in comment docs
  • Shell-prompts often use it?

#82 (comment)

Why not now

#79 (comment)

By the way, I will not be making a Bold Italic for 0xProto.

Because 0xProto is a programming font, and while Bold or Italic is necessary as a means of highlighting other than by color, wouldn't a Bold and Italic family be fine without it?

I know that it is not a problem to have. But I have a lot of other projects I want to do besides 0xProto, and I don't want to add as many things as possible that I need to keep maintaining.

It is possible that I am not aware of the seriousness of the Bold Italic use case.

@Finii
Copy link

Finii commented Sep 2, 2024

As the fist why is from me...

I tried to prove the second bullet point, but I could not find any screenshot where a prompt uses both bold and italic in parallel. So probably that does not exist (too often). I think I remember two-line prompts where some information is highlighted by BOLD and some other by ITALIC. Together with color.

The I tried to edit my Powerline setup to show some BoldItalic stuff, but while some in bold and some in italic works it does not render {"italic", "bold"} 🤔

image
My powerline colorscheme default file

And then, the terminal is controlled by ANSI sequences, and there just is no BoldItalic sequence:

image

image

https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences

Conclusion

It is possible that I am not aware of the seriousness of the Bold Italic use case.

No, you are right and I was mislead. Sorry for the red herring! Ordinary fonts usually come in RIBBIs,, but for terminals there seems to be no use-case.

Sorry, Fini

@matype
Copy link
Member Author

matype commented Sep 2, 2024

@Finii Don't be sorry 🙂 Thank you for your detailed information!

@mcchrish
Copy link

mcchrish commented Sep 2, 2024

Bold italic is certainly allowed in terminals.

echo -e "\e[3m\e[1mbold italic\e[0m"
image

But the absence of it is not much felt to be honest. I think editor themes rarely make use it, while the most common use case that I have seen is in comment docs like:
image
Where it blends with italic comments and add emphasis on doc tags.

@matype
Copy link
Member Author

matype commented Sep 3, 2024

OK, I won't start building the Bold Italic right away since it doesn't seem urgent or important. I won't close this issue, but I'll leave it as a task to work on gradually when I have time 🙂

@Finii
Copy link

Finii commented Sep 3, 2024

@mcchrish

Ah, right (looking surprised). Thanks.
For me this shows it a bit better / more obvious:

image

I have also seen this cursive comment with bold, but never when I work. Is that not only in some IDE like VSCode or something? I have never seen it in a terminal, I believe. But then, I never do JS, except when it is unavoidable. Maybe even neovim does that (trying)... No. But it does show a tiny JS icon 😆

image

@AndydeCleyre
Copy link

Bold Italic isn't implemented? So is wezterm or underlying font stuff faking it on the fly? Looks good to me:

(Zsh)

$ print -lP 'Regular:     eizrm' '%BBold:        eizrm%b' '\e[3mItalic:      eizrm\e[0m' '\e[3m%BBold Italic: eizrm%b\e[0m'

image

Though now that I stare at this screenshot I do wonder about the ol kerning in Bold.

@matype
Copy link
Member Author

matype commented Oct 20, 2024

I'm not really sure how the non-existent Bold Italic is completed or how it works 🤔

Though now that I stare at this screenshot I do wonder about the ol kerning in Bold.

@AndydeCleyre Exactly, but given that 0xProto is monospaced, each character must fit within the same width box. As long as it is a monospaced font, there will be both high-density and low-density glyphs in the box.

@mserajnik
Copy link

mserajnik commented Oct 30, 2024

Bold Italic isn't implemented? So is wezterm or underlying font stuff faking it on the fly? Looks good to me:

(Zsh)

$ print -lP 'Regular:     eizrm' '%BBold:        eizrm%b' '\e[3mItalic:      eizrm\e[0m' '\e[3m%BBold Italic: eizrm%b\e[0m'

Though now that I stare at this screenshot I do wonder about the ol kerning in Bold.

I can confirm this works kinda works in kitty as well (heavily zoomed in for legibility) (Edit: I noticed after commenting that it's not using the correct cursive script here for either italic or bold italic, which I was able to fix for italic later, but not for bold italic; so WezTerm must use a different/better implementation of this generated "bold italic" variant):
image
With the following configuration:

font_family family="0xProto"
bold_font Bold
italic_font Italic
bold_italic_font Bold Italic

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

No branches or pull requests

5 participants