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

Source Code Pro 2.042 In ExtraLight and ExtraLight Italic variants each character has more width than in other variants #323

Open
SubhamSatyajeet opened this issue Sep 28, 2023 · 3 comments

Comments

@SubhamSatyajeet
Copy link

SubhamSatyajeet commented Sep 28, 2023

Windows 10
Source Code Pro 2.042 (Regular), 1.062 (Italic), TTF

In ExtraLight and ExtraLight Italic variants, each character is wider than their counterparts in other variants.

Tested on Intellij IDEA and Notepad++.

Regular Variant
image
Medium Variant
image
Semibold Variant
image
Black Variant
image
Light Variant
image
ExtraLight Variant
image

@SubhamSatyajeet SubhamSatyajeet changed the title Source Code Pro 2.042 ExtraLight and ExtraLight Italic variant of tfonts have more width Source Code Pro 2.042 In ExtraLight and ExtraLight Italic variants each character has more width than in other variants Sep 28, 2023
@frankrolf
Copy link
Member

I was curious about this, so I did some investigation:

Focusing on this part of the bug report, I can see what you mean:
Screenshot 2023-09-28 at 13 23 35

The last t in Document seems to end up just slightly further to the right than in the screenshot above (compare with the 🔎).

However, I can also see that there’s some contrast applied to the letters, see for example the e and s – that’s not how those letters look like in Source Code ExtraLight:
Screenshot 2023-09-28 at 13 26 53

In your screenshot, you’ll see quite a bit of contrast in the e, while the design has virtually none.

The letters are all the same width across all the weights of course:
Screenshot 2023-09-28 at 13 21 12

So what I think is going on here is Notpad++ compensating for a font it deems “too thin” to display. This is something that’s called “smear bolding”, and is known from decades-old versions of MS Word.

FWIW, I don’t observe the issue as claimed in my SublimeText setup:
Screenshot 2023-09-28 at 13 22 44
Screenshot 2023-09-28 at 13 22 56

The conclusion is – this can only be fixed by Notepad++ – either via a bug report, or user settings.

@kenmcd
Copy link

kenmcd commented Sep 28, 2023

@SubhamSatyajeet
There is a work-around.
The old "smear-bold" only affects fonts with a usWeightClass of under 250.
For example it would affect ExtraLight (200) and Thin (100).
(the correct weights)
So as a work-around some fonts have ExtraLight set to 275, and Thin set to 250 - to prevent the stupid text engine from distorting the characters.
Here is the two ExtraLight fonts with the weight set to 275.
Try these: SourceCodePro-ExtraLight-275.zip

@SubhamSatyajeet
Copy link
Author

@frankrolf
I made a mistake in my first comment - The two editors where this was reproducible were IntelliJ IDEA and Notepad++. Sublime Text works as expected. I'll close this issue since it is not related to the fonts themselves.

@kenmcd
Thanks for the 275 width fonts, this did work for IntelliJ IDEA! (not for Notepad++)

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

No branches or pull requests

4 participants