Dafny-VSCode icon indicating copy to clipboard operation
Dafny-VSCode copied to clipboard

Causing ligatures to render incorrectly

Open alexsurelee opened this issue 5 years ago • 2 comments

Using MS's cascadia code font with ligatures enabled, this extension being enabled appears to influence how the ligatures render in .dfy files.

e.g. extension disabled image

vs extension enabled image

This is on MacOS Catalina 10.15 VS Code 1.39.2 Extension 0.17.1 Cascadia Code 1910.04 (latest versions of everything)

alexsurelee avatar Oct 25 '19 06:10 alexsurelee

Hi @alexsurelee

I'm not aware of any explicit changes we do with fonts or ligatures, but it might be that the code highlighting plays a role here. Does the bug occur in Dafny source only or VSCode wide?

It seems that the VSCode team is currently working on language specific ligatures in https://github.com/microsoft/vscode/issues/10435#issuecomment-545513026, which will probably be shipped with the next release.

I'd suggest we wait until these changes are released, if the problem persists we can take another look at it 🙂

fabianhauser avatar Oct 25 '19 11:10 fabianhauser

Does the bug occur in Dafny source only or VSCode wide?

Only occurs in .dfy files, and only when this extension is enabled, so definitely appears to be somehow related to this.

It seems that the VSCode team is currently working on language specific ligatures in microsoft/vscode#10435 (comment), which will probably be shipped with the next release.

Interesting, wonder if that'll fix it!

alexsurelee avatar Oct 25 '19 22:10 alexsurelee