monaspace icon indicating copy to clipboard operation
monaspace copied to clipboard

Digit 0 height doesn't match other digits in some applications

Open Reedbeta opened this issue 2 years ago • 7 comments

Unsure if this is a font issue or a renderer issue, or an intersection of both, but I thought I'd start here.

Example string: [Version 10.0.19045.3693]

Here's how it renders in Windows Terminal, with Monaspace Neon: Windows Terminal

The 0 in 19045 is visibly shorter than other digits. But the 0's in 10.0 appear to be the right height.

Looks similar in VSCode: VSCode

Looks more correct in Visual Studio 2022: Visual Studio 2022

Looks good in Firefox as well: Firefox

Reedbeta avatar Nov 20 '23 23:11 Reedbeta

Why the 0's in 10.0 is much wider than other digits? Is it a ligature like 0.0 -> eyes?

Firestar-Reimu avatar Nov 21 '23 14:11 Firestar-Reimu

@Firestar-Reimu that's “Texture Healing” https://monaspace.githubnext.com/

alexeyten avatar Nov 21 '23 14:11 alexeyten

Aesthetically, I don't love the wide zeroes - they look incongruous next to the other digits for me - but that's another issue. 🙂 The mismatched heights, though, seem like an actual bug somewhere.

Reedbeta avatar Nov 21 '23 19:11 Reedbeta

I just came here to report an issue that I think might be the same thing. This is in VScode with ligatures enabled:

image

And disabled:

image

In both cases we get a lot of unusually short zeroes, but if ligatures are enabled the 0 following the leading 1, and only that 0, is the correct height. This is in vscode and you get the same effect with any non-false setting of fontLigatures, including ones that should be turning off texture healing.

ToxicFrog avatar Nov 22 '23 00:11 ToxicFrog

On further reading, the "any non-false setting" is #118 which is a vscode bug, so this is in fact a texture healing bug with monaspace. 'calt' off gives short zeroes everywhere, 'calt' gives a mix of short and normal zeroes.

ToxicFrog avatar Nov 22 '23 00:11 ToxicFrog

It would be interesting to know if you use the static or the variable font version?

Finii avatar Dec 19 '23 18:12 Finii

The different zeros do have different heights, just by one unit, but nevertheless, that rounds either up or down when "hinting".

In this regard it would be also interesting if the behaviour you encounter changes if you change the font size by 1 or 2 pt. Or maybe look at ridiculously big letters like 60 pt, is the difference still one pixel?

Screenshot 2023-12-19 at 20 13 45

Ignore the different position, the XY display on the bottom of the glyhs shows the green point at 1484 and 1485

Finii avatar Dec 19 '23 19:12 Finii

Fixed in ca8015b27bdc6d8e1201b1ad722f4ae3c38970d0

idan avatar May 03 '24 23:05 idan