this post was submitted on 01 May 2024
20 points (91.7% liked)

Linux

48313 readers
855 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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?

top 3 comments
sorted by: hot top controversial new old
[–] Black616Angel@discuss.tchncs.de 2 points 6 months ago

Ask yourself, how italic text should look.

Do you want another fonts italic style? Do you want Fira Mono on non-italic?

Then input that into the config.

Alacritty may have a fallback in place, if italic is left out, but I am not quite sure, since I use wezterm for its better display capabilities of font ligatures.

[–] deo@lemmy.dbzer0.com 2 points 6 months ago (1 children)

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.

[–] mobsenpai@lemmy.world 1 points 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!