microsoft / cascadia-code

This is a fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal.
Other
25.39k stars 803 forks source link

Problem in fontLigatures with forwardslash ('/') and equality symbol ('=') #517

Closed Parvat-R closed 3 years ago

Parvat-R commented 3 years ago

Cascadia family version

2105.24

Cascadia family variant(s)

Cascadia Code (the version with ligatures)

Font file format(s)

.ttf (variable)

Platform

Windows 10 32-bit

Other Software

Visual Studio Code Insider

What happened?

The use of / and = together makes the first-quarter part of the equal go up and shrink by the way when using like this: /= image but works well when its =/=. image

aaronbell commented 3 years ago

Interesting. Can you give more information regarding the exact resolution / point size that you're looking at?

The outlines are perfectly aligned, so this appears to be hinting related, but the hinting instructions are also the same.... I wonder if you've just happened to fall into a crack where it doesn't align for some reason.

Parvat-R commented 3 years ago

Okay, let me explain. The bottom left side of the equal symbol just moved a 1 pixel up when used with the /. Here a more zoomed image. image

Why does that go up? Is it my VS code's problem or some minor bug?

aaronbell commented 3 years ago

Yes I understand the problem and believe it to be hinting related where the horizontal bar has been shifted slightly to align with the pixel grid. As I said before, can you provide the resolution of your device and the point size of the text?

Parvat-R commented 3 years ago

I have dual screen. One of 1920x1080 and another of 1366x768. Both of them show the same alignment as shown in the above picture,

Parvat-R commented 3 years ago

I think that is the problem of my VS code or the theme probably. Because it works well in liber office. See this image image And thanks for immediate response.