JetBrains / JetBrainsMono

JetBrains Mono – the free and open-source typeface for developers
https://jetbrains.com/mono
SIL Open Font License 1.1
10.84k stars 301 forks source link

Strange height of backquotes in SQL in PHP string literals #411

Open f1amy opened 3 years ago

f1amy commented 3 years ago

The backquotes have different height on start and end of names: image

Looks like it depends on the string inside the quotes: image

philippnurullin commented 3 years ago

Hi @f1amy . Please send me the exact text with symbols. Looks like the problem is with grave (U+0060). And the placement of it is shifted because of OpenType Feature "Case Sensitive Forms". What IDE you using?

f1amy commented 3 years ago

Hello, @philippnurullin. Here is the file: backquotes.txt. IDE is PHPStorm 2021.1 EAP.

f1amy commented 3 years ago

I realized that this could be due to EAP build I'm using, but I don't have any other installed currently.

philippnurullin commented 3 years ago

Yes, it may. We are exploring the ability to support OpenType Features. We will investigate this issue. Thanks for the feedback.

toothbrush7777777 commented 2 years ago

I see the same in the browser (Firefox / Microsoft Edge / Chrome) and Visual Studio Code (only tested on Windows). This appears to happen when the preceding (Latin?) letter is capitalised.

SELECT `SQL`, `TestID`, `sql`, `testid`, `test_id` FROM `a`

image

philippnurullin commented 2 years ago

I have spotted the source of the problem. It's autogenerated OpenType feature. Turned off for now.