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
New terminal lines rendering cuts off bottom/top of characters like underscore #35901
The new terminal rendering cuts off the bottom part of "long" characters, such as g, j and y.
1.17.0:
1.17.1:
VSCode Version: 1.17.0
Version 1.17.0
Commit be377c0faf7574a59f84940f593a6849f12e4de7
Date 2017-10-04T23:33:45.303Z
Shell 1.7.7
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64
OS Version: Ubuntu Trusty 14.04
Steps to Reproduce:
Open the Terminal
Start typing git checkout -b feature/object
Reproduces without extensions: Yes
Reacted by Jan Niklas Hasse, Max Schmitt, vpzomtrrfrt, Nepoxx, Hagai Shapira, Paolo Ceschi Berrini, Jakub Čábera, Party, Jinren Ping, Thomas LÉVEIL and 124 more
Reacted by Merlijn Sebrechts, Sergio Urbina, Max Wittig, Bernardo Donadio, Juho Vanhanen, Giselle Serate, axi92 and Ray Foss
I just changed the "terminal.integrated.fontFamily" value. My issue was that underscores were not displayed using DejaVu Sans Mono. With other fonts they are displaying, not sure if it would help to fix your problem guys, but sure is worth to give it a try.
Reacted by Aaron Lane, Titouan B, Jacob Phillips, Zubeir Mohamed, e-monson, alimbaga, JesusPuga, ichbinbobby, David Raison and watashiSHUN
The variable width font that I'm partial to now renders like this.
Reacted by John DeBord, Alexandre Hitchcox, Kai Dewey, n0nag0n, kennethz3, Karthik Desai, Robby Prescott, Entropy Lost, TheEvilSocks, Ahmad S and 3 more
In 1.17.1 the rendering changed (it's somewhat blurrier and smaller fontsize - see top comment for comparison) but the bug prevails:
Daniel Imms (@Tyriar) This also happens for a fresh code instance (without settings.json in the project's root .vscode). My User Settings are like this:
changed the title [-]New terminal rendering lines cut off bottom of long characters[/-][+]New terminal lines rendering cuts off bottom of long characters[/+]on Oct 11, 2017
It's an off by one error in measuring the "height" of the font that doesn't happen in all font sizes in the canvas renderer of xterm.js. If there is someway to fix up this computation then that would fix this for the canvas renderer. I think there was an issue in xterm.js where I explained my investigation of this.
The issue is that rows are clipped so that we can render rows independently, otherwise the whole terminal would need an update. #84440 fixes this and makes the terminal way faster so stay tuned 😃
Reacted by Shyam Mittal, stoically, Wenzhao Hu and stefnotch
I'm running OSX and I used to have "ProggyCleanTTSZ" ( from the amazing https://proggyfonts.net/ ) and it worked like a charm.
One day i decided to accept the "Update" on VS Code and that terrible update started cropping my text on the terminal.
I played with all settings possible here in this thread and nothing worked other than changing my font to "monospace", which is less than ideal as i'm used to use ProggyClean for over 15 years now 😢
I hope this get fixed before i move back to vim, which perhaps i should never have left, lol
that just gave me new problems, like my text is rendered out of the Terminal box sometimes and i can't see it. but if i type for instance ls -la then i can se the result because it spans many lines.
If you're still on the canvas renderer, hems.io (@hems) calls out a workaround in #107942 (comment) to regenerate the font file:
After months and months having the issue with my font being cropped on the bottom of the terminal i managed to solve the issue by importing the font into https://www.glyphrstudio.com/online/ then export it as OTF.
Activity
fpauser commentedon Oct 9, 2017
Same problem here.
masonj5n commentedon Oct 9, 2017
Chops the top off on Fedora 26.

imgss commentedon Oct 10, 2017
Same problem here.

ivcosla commentedon Oct 10, 2017
I just changed the
"terminal.integrated.fontFamily"value. My issue was that underscores were not displayed usingDejaVu Sans Mono. With other fonts they are displaying, not sure if it would help to fix your problem guys, but sure is worth to give it a try.jashworth commentedon Oct 10, 2017
The variable width font that I'm partial to now renders like this.
Tyriar commentedon Oct 10, 2017
IMGSS (@imgss) see #35660
jashworth see #35681
Tyriar commentedon Oct 10, 2017
Viktor Kunovski (@viktorku) what's in your settings.json file?
viktorku commentedon Oct 11, 2017
In 1.17.1 the rendering changed (it's somewhat blurrier and smaller fontsize - see top comment for comparison) but the bug prevails:
Daniel Imms (@Tyriar) This also happens for a fresh code instance (without
settings.jsonin the project's root.vscode). My User Settings are like this:{ "workbench.sideBar.location": "left", "files.exclude": { "**/.git*": false, "**/.svn": true, "**/.hg": true, "**/.DS_Store": true, "**/.tags*": true, "**/.pyc": true, ".catkin_tools/**/packages": true, "build": true, "devel": true, "logs": true, "src/external": true, "**/CMakeLists.txt.user": true, "**/__pycache__": true }, "editor.fontSize": 12, "editor.tabSize": 2, "editor.wordWrap": "on", "editor.rulers": [ 100 ], "[python]": { "editor.tabSize": 4 }, "files.trimTrailingWhitespace": true, "diffEditor.ignoreTrimWhitespace": false, "workbench.editor.enablePreviewFromQuickOpen": false, "window.zoomLevel": 0, "clang-format.executable": "/usr/bin/clang-format-3.8", "clang-format.style": "Google", "clang-format.language.javascript.enable": false, "prettier.printWidth": 100, "prettier.singleQuote": true, "prettier.bracketSpacing": true, "workbench.colorTheme": "One Dark Pro", "editor.multiCursorModifier": "alt", "git.ignoreLegacyWarning": true, "workbench.startupEditor": "newUntitledFile", "eslint.nodePath": "/home/viktor/.nvm/versions/node/v7.4.0/bin/node", "python.linting.pylintArgs": [ "--load-plugins pylint-django" ] }[-]New terminal rendering lines cut off bottom of long characters[/-][+]New terminal lines rendering cuts off bottom of long characters[/+]95 remaining items
l-miskovsky commentedon Nov 8, 2019
Underscores are finally visible with
fontSize: 14and the latest 1.40 version 🎉vinicpac commentedon Nov 10, 2019
Still not working for me on: Ubuntu 18.04.3 LTS x64, VS Code 1.40
I have to use the workaround "terminal.integrated.fontSize": 15" in order to see the underscore.
Bessonov commentedon Nov 10, 2019
@viniciussp4 I use my docker image with ubuntu 18.04 for development and I see the underscores:
https://github.com/Bessonov/dev-image
Can you check your installation and vscode settings or the image?
https://github.com/Bessonov/dev-image/blob/master/Dockerfile#L28
I mean, if it's working in a reproducible way with docker, then it could be a local problem.
nobi1007 commentedon Nov 13, 2019
I don't get it but only the with font-size of 14 there comes the problem, but with other font sizes it not the case. Any reason ??
segevfiner commentedon Nov 13, 2019
It's an off by one error in measuring the "height" of the font that doesn't happen in all font sizes in the canvas renderer of xterm.js. If there is someway to fix up this computation then that would fix this for the canvas renderer. I think there was an issue in xterm.js where I explained my investigation of this.
Tyriar commentedon Nov 14, 2019
The issue is that rows are clipped so that we can render rows independently, otherwise the whole terminal would need an update. #84440 fixes this and makes the terminal way faster so stay tuned 😃
hems commentedon Dec 5, 2019
I'm running OSX and I used to have "ProggyCleanTTSZ" ( from the amazing https://proggyfonts.net/ ) and it worked like a charm.
One day i decided to accept the "Update" on VS Code and that terrible update started cropping my text on the terminal.
I played with all settings possible here in this thread and nothing worked other than changing my font to "monospace", which is less than ideal as i'm used to use ProggyClean for over 15 years now 😢
I hope this get fixed before i move back to vim, which perhaps i should never have left, lol
Tyriar commentedon Dec 5, 2019
hems.io (@hems) that's a bug in Chromium that shows up on some fonts #84432, https://bugs.chromium.org/p/chromium/issues/detail?id=1026254
hems commentedon Dec 6, 2019
hopefully fixed soon
Tyriar commentedon Dec 6, 2019
You can try out the new WebGL-based renderer where this issue is fixed by using this:
It's available in Insiders and in the upcoming version.
The canvas renderer will eventually be removed as the webgl one is basically a highly optimized/low-level version of it.
hems commentedon Dec 16, 2019
that just gave me new problems, like my text is rendered out of the Terminal box sometimes and i can't see it. but if i type for instance
ls -lathen i can se the result because it spans many lines.Tyriar commentedon Dec 27, 2019
hems.io (@hems) I haven't heard of a problem like that before, please report in a new issues with repro steps.
Tyriar commentedon Nov 4, 2020
If you're still on the canvas renderer, hems.io (@hems) calls out a workaround in #107942 (comment) to regenerate the font file: