1
votes

Not sure if I messed up something in the settings, even though all the fonts in Text Editor Settings are monospace fonts, but some words get rendered not monospaced, noticeably for 'fi', it seems that the 2 characters only occupy one space, like in 'file', 'fix', 'Identification', etc. What should I do to fix that?

I tried a number of different fonts and rearranged them. Currently the Font Family setting is: Menlo, Monaco, 'Courier New', monospace, but the problem never goes away.

macOS Mojave Version 10.14.6

VSCode Version: 1.37.0

1
I turned it off on both Users and Workspace settings, and it works now. Thanks a ton!hxin
turned it into an answer instead, since most users won't know the name for this kind of behaviour, and so won't know what to websearch for (if you do know the name, the solution is trivially found)Mike 'Pomax' Kamermans

1 Answers

4
votes

That kind of "collapsing into a single glyph" for things like fi and fl are called ligatures. Why they'd be in a monospaced font at all, I have no idea, but you can turn those off in settings => "ligatures" => then making sure that checkbox is turned off.