Normally one defines all normal, bold, italic, bold italic font in alacritty. But since fira mono does not have italic font, how should the config structure look like?

"font": {
"normal": {"family": "FiraMono Nerd Font", "style": "Regular"},
"bold": {"family": "FiraMono Nerd Font", "style": "Bold"},
"size": 10
}

Should I define the fonts which are available like normal, bold and leave italic and bold italic. Or should I just define normal font?

  • deo@lemmy.dbzer0.com
    cake
    link
    fedilink
    arrow-up
    2
    ·
    6 months ago

    I use FiraCode Nerd Font Mono instead, but it also does not have a specific italic font. In my config, only the “normal” section is defined, but all my bold and/or italic text looks like it should. Apparently, alacritty will apply a heavier weight or slant to the “normal” type face if you simply omit the “bold” or “italic” sections. So, what you have right now should Just Work.

    Allegedly, you can omit the “style” specification in the “italic” section (ie: just add "italic": {"family": "FiraMono Nerd Font"}, to your config snippit above), but i haven’t actually tried doing it that way.

    • Yash Raj@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      Yeah thats what I am going to use cuz before when I was using jetbrainsmono I had all the bold, bold_italic etc and suddenly just removing em all doesn’t feel good to me.

      Yep totally for satisfaction!