0xProto icon indicating copy to clipboard operation
0xProto copied to clipboard

Bold Italic?

Open morishxt opened this issue 1 year ago • 8 comments

Why

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

https://github.com/0xType/0xProto/issues/82#issuecomment-2324305929

Why not now

https://github.com/0xType/0xProto/issues/79#issuecomment-2283765005

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.

morishxt avatar Sep 02 '24 11:09 morishxt

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"} :thinking:

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

Finii avatar Sep 02 '24 12:09 Finii

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

morishxt avatar Sep 02 '24 14:09 morishxt

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.

mcchrish avatar Sep 02 '24 17:09 mcchrish

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 🙂

morishxt avatar Sep 03 '24 01:09 morishxt

@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 :laughing:

image

Finii avatar Sep 03 '24 11:09 Finii

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.

AndydeCleyre avatar Oct 18 '24 17:10 AndydeCleyre

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.

morishxt avatar Oct 20 '24 16:10 morishxt

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

mserajnik avatar Oct 30 '24 12:10 mserajnik