this post was submitted on 09 Nov 2023
191 points (100.0% liked)

Programming

423 readers
5 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] jeffhykin@lemm.ee 14 points 1 year ago* (last edited 1 year ago) (2 children)

I like all of it, except for that awful "texture healing". Imagine having words above & below like

i=mins
w=maxs

But the m's just slightly don't line up because the top one is wider than the bottom one. I'd feel like my editor was gaslighting me ๐Ÿคข

[โ€“] OmnipotentEntity 15 points 1 year ago* (last edited 1 year ago) (2 children)

Here's your code example in the editor. I don't personally think the difference between the 'm's is super noticable. But what did strike me a lot more is the difference in height between the two 'i's in the first line. I think that difference is pretty bad.

[โ€“] murtaza64@programming.dev 9 points 1 year ago (2 children)

It looks like it's not an actual height difference, but the smaller width makes the second i look significantly smaller than the first, also implying a lower height.

[โ€“] OmnipotentEntity 5 points 1 year ago* (last edited 1 year ago)

True, they are the exact same height. Holy optical illusion, Batman!

I suppose this is part of what makes font design so difficult.

[โ€“] jeffhykin@lemm.ee 3 points 1 year ago

Welp, another reason I will absolutely not be using glyph-streching or whatever Microsoft called it.

[โ€“] jeffhykin@lemm.ee 6 points 1 year ago* (last edited 1 year ago) (1 children)

thanks for rendering that! and yeah that height difference is really weird. That almost seems like a bug.

Also Idk if the ='s make the m smaller or bigger.

If the streching is so small as to be unnoticable (and I agree it's pretty subtle) then I also don't really understand the benefit.

[โ€“] OmnipotentEntity 6 points 1 year ago (1 children)

If the streching is so small as to be unnoticable (and I agree it's pretty subtle) then I also don't really understand the benefit.

Typically, the idea behind this sort of design is that it should be unnoticeable. The motivation is that, with other monospace fonts, the differences in character width, along with the inconsistent spacing and line thicknesses are both noticable and distracting. Some of this badness is avoidable, and this is what this font attempts.

and yeah that height difference is really weird. That almost seems like a bug.

I've been informed, (and had to double check because I didn't believe it,) that the two "i"s are actually the exact same height. The first looking larger than the second is an optical illusion. Font design is hard.

[โ€“] jeffhykin@lemm.ee 1 points 1 year ago* (last edited 1 year ago)

Eh I don't really buy the noticeable argument. Either it's not noticeable both ways (doesn't matter that m is squished all the time) or it's not noticeable both ways (expanding m doesn't align and it's noticeable and annoying).

Optical Illusion

~~Wait no, its the fault of the stretching! I mean yes, the i's are the same hight (which is shocking, thank you for correcting us on that) but the reason it's an optical illusion is because the i on the left is wider and wide m exaggerates the thinness of the i on the right! Turn off the stretching and suddenly the i's look the same height.~~

Edit: I see someone else already pointed this out

This is what I meant by "feeling like my editor is gaslighting me"

[โ€“] wethegreenpeople@sopuli.xyz 2 points 1 year ago (2 children)

They would still line up, wouldn't they? Or am I misunderstanding how the texture healing would work... Would they not take the same total amount of space?

[โ€“] jeffhykin@lemm.ee 7 points 1 year ago* (last edited 1 year ago)

Each line is the same total length but the "m" in "mi" would be wider than the m in "ma"