You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proportional fonts are rendered as fixed width fonts in the terminal #35681
*out-of-scopePosted issue is not in scope of VS Codefeature-requestRequest for new features or functionalityterminalGeneral terminal issues that don't fall under another label
Open the terminal and do something. Text is rendered as if the font is a fixed width font.
Reproduces without extensions: Yes/No
Reacted by Nicky McCurdy, Roman Starkov, Zev Spitz, Liam Cain, Sun YMC, Daniel Saner, kiara, Saulius Venskutonis, Tobias Hernstig, Felipe Torres (fforres) and 2 more
So it is possible to use a proportional font in the editor and a fixed width one in the editor
Things look ok now.
Reacted by Daniel Imms, Nicky McCurdy, Roman Starkov, Marc, YaYaB, DonSkeleton, Ricardo Ambrogi, Rishav Sharma, Felipe Schossler, Jacob Rodal and 1 more
Proportional fonts are just as valid as monospace fonts for coding. It would be nice to have better rendering in the terminal since the extra spacing makes proportional fonts difficult to read (they seem to have even wider spacing than monospace fonts). For now I'm setting terminal.integrated.fontFamily to a monospace font similarly to MM Zeeman (@mmzeeman)'s tip.
Reacted by Roman Starkov, Zev Spitz, DonSkeleton, Daniel Saner, Manohar Chokkapu, Victhor Sartório and Mark Dickinson
Hey, I'm in need of this "terminal.integrated.letterSpacing": 0.25, when will something like this be added, or is there a way I can achieve this currently?
@matt3224 decimal letter spacing would only be added after proportional font support is added. Font rendering is currently done on a canvas and every character is drawn on a grid and their texture cached to boost performance, because of this their x,y coordinates need to be integers (otherwise they would be blurry).
Daniel Imms (@Tyriar) But you closed #35695 in favor of this one and now it's not planned? As far as I can see on xtermjs/xterm.js#1044, letter spacing is supported by xterm, right? So could we at least get that on VS Code?
I mean, I just wanted to have 1px more between each character because right now they just feel weird. And that 1px between each character would render the terminal much more closely to how Windows Command Prompt renders. It's just 1px, it's an integer and their texture could still be cached without a performance hit, right?
Ricardo Amaral (@rfgamaral) it was actually an oversight that I didn't bring in letterSpacing as a setting in vscode, this comment is wrong #35695 (comment), I must have missed it.
I'll add this in the May release as that's trivial. Tracking in #49566 to make sure it gets done/verified. Sorry about the hassle and thanks for calling this out.
Reacted by Ricardo Amaral, cw and Victhor Sartório
I had the same issue. because I imported settings from someone else. (I'm using linux, imported settings from a mac)
Go to Settings > filter settings to show modified settings >> there i deleted everything in front of the font field. restart the IDE.
if you import settings using a service such as Settings Sync. It may be because you are trying to use a font that is not currently installed on your computer.
also a reminder usually terminals, code editors are only support mono-space fonts.
Dulara Malindu (@dulara1994) remember you can also use font fallbacks, so you can have fonta, fontb, monospace as your font config if the fonts aren't on all your OS's.
Closing as font fix, you should be using a monospace font in a terminal. If you're experiencing this issue you can fix it by configuring the terminal.integrated.fontFamily setting to use a monospace font.
*out-of-scopePosted issue is not in scope of VS Codefeature-requestRequest for new features or functionalityterminalGeneral terminal issues that don't fall under another label
Activity
CruCo commentedon Oct 6, 2017
I've the same results on Win 10 Pro x64 / VSCode 1.17.0 while using a custom "editor.fontFamily"-setting.

By using the standard font family the problem is gone


mmzeeman commentedon Oct 6, 2017
I found out that it is possible to use a different font in the terminal. Currently I have this setting:
So it is possible to use a proportional font in the editor and a fixed width one in the editor
Things look ok now.
nickserv commentedon Oct 17, 2017
Proportional fonts are just as valid as monospace fonts for coding. It would be nice to have better rendering in the terminal since the extra spacing makes proportional fonts difficult to read (they seem to have even wider spacing than monospace fonts). For now I'm setting
terminal.integrated.fontFamilyto a monospace font similarly to MM Zeeman (@mmzeeman)'s tip.Gaolz commentedon Dec 5, 2017
Update settings to "terminal.integrated.fontFamily": "Monaco", it works for me.
Hideer commentedon Feb 7, 2018
Resetting the font does not solve the problem.
mmzeeman commentedon Feb 7, 2018
You are right. It is a workaround, you have to use a monospaced font in the terminal.
Hideer commentedon Mar 8, 2018
I set the terminal font for "terminal. Integrated. FontFamily" is still doesn't work, so that the terminal can make me look very pain
Tyriar commentedon Mar 8, 2018
Sun YMC (@Hideer) you need to use a monospace font, variable width fonts are not supported within the terminal.
mattpilott commentedon May 4, 2018
Hey, I'm in need of this
"terminal.integrated.letterSpacing": 0.25,when will something like this be added, or is there a way I can achieve this currently?Tyriar commentedon May 4, 2018
@matt3224 decimal letter spacing would only be added after proportional font support is added. Font rendering is currently done on a canvas and every character is drawn on a grid and their texture cached to boost performance, because of this their x,y coordinates need to be integers (otherwise they would be blurry).
mattpilott commentedon May 4, 2018
Daniel Imms (@Tyriar) how far along is the proportional font support?
Tyriar commentedon May 5, 2018
@matt3224 it's not planned
rfgamaral commentedon May 9, 2018
Daniel Imms (@Tyriar) But you closed #35695 in favor of this one and now it's not planned? As far as I can see on xtermjs/xterm.js#1044, letter spacing is supported by xterm, right? So could we at least get that on VS Code?
I mean, I just wanted to have 1px more between each character because right now they just feel weird. And that 1px between each character would render the terminal much more closely to how Windows Command Prompt renders. It's just 1px, it's an integer and their texture could still be cached without a performance hit, right?
Tyriar commentedon May 9, 2018
Ricardo Amaral (@rfgamaral) it was actually an oversight that I didn't bring in
letterSpacingas a setting in vscode, this comment is wrong #35695 (comment), I must have missed it.I'll add this in the May release as that's trivial. Tracking in #49566 to make sure it gets done/verified. Sorry about the hassle and thanks for calling this out.
rfgamaral commentedon May 9, 2018
Daniel Imms (@Tyriar) No problem, thank you :)
dulara1994 commentedon Oct 5, 2018
I had the same issue. because I imported settings from someone else. (I'm using linux, imported settings from a mac)
Go to Settings > filter settings to show modified settings >> there i deleted everything in front of the font field. restart the IDE.
if you import settings using a service such as Settings Sync. It may be because you are trying to use a font that is not currently installed on your computer.
also a reminder usually terminals, code editors are only support mono-space fonts.
Tyriar commentedon Oct 5, 2018
Dulara Malindu (@dulara1994) remember you can also use font fallbacks, so you can have
fonta, fontb, monospaceas your font config if the fonts aren't on all your OS's.Tyriar commentedon Oct 8, 2019
Closing as font fix, you should be using a monospace font in a terminal. If you're experiencing this issue you can fix it by configuring the
terminal.integrated.fontFamilysetting to use a monospace font.