ryanoasis / nerd-fonts

Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
https://NerdFonts.com
Other
52.6k stars 3.59k forks source link

ShureTech Mono font overlapping with other characters when rendered in bold in terminal #1638

Open tukykarmakar opened 1 month ago

tukykarmakar commented 1 month ago

🗹 Requirements

🎯 Subject of the issue

Experienced behavior:

When using the ShureTechMonoNerdFont-Regular font in Konsole, the "intense colours" are being rendered in bold and overlapping with the characters that seem to be a tab-space away from them. The issue goes away when the setting "Draw intense colours in bold fonts" option is unchecked.

Expected behavior:

Characters should be spaced correctly and not overlapping. The expected behaviour is demonstrated in the 3rd screenshot below with AnonymicePro Nerd Font.

Example symbols:

🔧 Your Setup

ℹ️ Some points to note

I've been told that ShureTech Mono Nerd Font doesn't have any bold variant and thus, it shouldn't be rendering in bold. However, as you can see in the screenshots below, it really is ShureTech Mono being rendered in bold. In fact, it is rendered in bold in a rich text editor like OnlyOffice too (see ShureTech Mono Nerd Font Bold.docx). The same boldness can also be observed in Windows 10, where the Regular variant is rendered in bold (see last 3 screenshots).

Also, this isn't the only font with that can render in bold despite not having a bold variant. I specifically installed AnonymicePro Nerd Font Regular only, so that I can show how it can also be rendered in bold in the terminal (4th screenshot below).

★ Screenshots (Optional)

Konsole-Bold-Spacing-03 Konsole-Bold-Spacing-04 Konsole-Bold-Spacing-02 Konsole-Bold-Spacing-05 Windows_Screenshot Windows-Terminal-01 Windows-Terminal-02

Finii commented 1 week ago

Well, artificially expanding a single font to a complete RIBBI set is a "feature" that also already existed in Windows 3 and probably before that. So for example; MS Word had these BOLD and ITALIC buttons, and they always worked, even if the selected font was an ornamental one, where it did not really make sense. If no Bold or Italic could be found on the system the font was "invented from this air" by transmogrifying the Regular variant. Back than everyone knew, do not select Bold (or Italic) in Word if you do not have that font, because it kind of renders but looks very ugly. So this is a "convenience" function that imho should not be there at all.

But well, people seems to like it, or application programmers think people like it, or whatever, but that questionable feature is still available as of today - as you found out.

An autogenerated Bold or Italic can not be good - or font designers would never need to bother designing these.

Also the Italics version was of course an Oblique instead, but people might think they are the same?

Whatever, that is part of what you noticed: There are programs out there that take a Regular font and allow the user to select Bold or Italic even if there is no such font installed and autocreate it on the fly.

Well, as there is no Bold font, how should it be fix it here? If you have issues with the font that some system autogenerates, surely you should raise an issue over there (wherever that is)?


Here, in Tilix:

image

Here, in Writer:

image

And here a particularly bad example: Gyre Chorus itself is already a slanted / oblique font, and they just slap their artifical "Italic" on top of it, making it more slanted :laughing: :sob:

image

Regular is Italic with this font

image

tukykarmakar commented 1 week ago

I just don't understand why it was working fine previously, I didn't change any settings other than selecting ShureTech for monospace fonts from the KDE Settings app. This issue only happens when there's a tab after the bold characters, and I wasn't able to reproduce it in any other editor or text output.

Also, why does it not happen with wider fonts like Source Code Pro and Anonymice Pro?

Finii commented 1 week ago

Hmm, probably Konsole got an update and that introduced a new bug?

Can you roll back a version? You don't specify which Linux you use (so I can't check), but maybe you should check when Terminal had been updated last and if that coincides with the behavioural change.

It seems Konsole has some problems with the Bold stuff, like for example https://bugs.kde.org/show_bug.cgi?id=432898 (which is open since 2021?!) or https://bugs.kde.org/show_bug.cgi?id=470059

You could also try if the problem persists with the Nerd Font Mono (or Nerd Font Propo) variant.

If this happens only with Konsole it's unlikely to be a Nerd Fonts problem ;-)

tukykarmakar commented 1 week ago

I'm using Nobara, a distro based on Fedora, if you want to try reproduce it yourself. I can't find anything on how to rollback Konsole versions. I'll go ask in the KDE discussion forum about rolling back and about the font issue in Konsole.

Thanks for looking into this.