-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal font height incorrect since last update #84432
Comments
This happens to me as well. My terminal is illegible. VS Code v1.40 using the Proggy Square (Slashed Zero) font available here: https://proggyfonts.net/download/ Environment: |
Since last VS-Code update, the Powerline Arrow to the Right renders not tall enough. Font Used in the Screenshot: Fira Mono for Powerline |
environment版本: 1.40.1 (user setup) Same issue, my font Sarasa-Gothic, It seems that the font has been moved up a few pixels |
Likewise for me - Canvas = crisp but wrong; Dom = bluryish but right. I'm stuck with Canvas so I don't get a headache, and guessing decenders since they aren't visible. |
Now I look at it tho, the editor is also similarly blury, so being able to use the crisper text output there too would be nice. |
This appears to be an Electron/Chrome bug possibly related to recent changes in textBaseline (https://crbug.com/890515, https://crbug.com/607053). The following screenshots were produced on Windows 10 by running the xterm.js demo after installing Proggy Square (Slashed Zero) ttf and setting Electron 6 (Chromium 76, taken in VS Code): Chrome 78.0.3904.108: Edge (Chromium) 80.0.328.4: Electron 4 (Chromium 69, taken in VS Code): Firefox Nightly 72.0a1: Edge (Old) 44.19013.1.0: |
|
Reported upstream https://bugs.chromium.org/p/chromium/issues/detail?id=1026254 |
I recommend we all go there and star it so it gets noticed more. |
Minimal repro case: <html>
<body>
<canvas width="200" height="200"></canvas>
<script>
const c = document.querySelector('canvas');
const ctx = c.getContext('2d');
// Draw a guide line at y where text is drawn
ctx.beginPath();
ctx.moveTo(0, 100);
ctx.lineTo(200, 100);
ctx.stroke();
// Draw the text
ctx.textBaseline = 'middle';
ctx.font = '30px Arial';
ctx.fillText('Works', 10, 100);
ctx.font = '30px ProggySquareTTSZ';
ctx.fillText('Doesn\'t work', 110, 100);
</script>
</body>
</html> Chromium Firefox |
Please post that to the upstream bug. |
Already did |
Tentatively assigning to May for debt week if there's time to see if there's a workaround. |
Moving the webgl part to #95813. The textBaseline middle broken thing (this issue) is blocked on Chromium, but they say the font metrics have problems? |
Same happening here, "y" is being cut, looks like an "u" :( I tried adding I'm using |
Please have a look on this issue i created documenting how i finally fixed my font rendering problems on the terminal: |
This seems to have been fixed with 1.56 (or 1.55?) for me, using the webgl renderer on Windows. See also #120129. |
Yep vertical alignment was fixed up in that issue /duplicate |
@unkindypie do you set the terminal line height setting |
@Tyriar |
Issue Type: Bug
Since the last VSCode update my terminal font is missing the bottom of its decenders, and altering line-height isn't helping - that just puts space between the lines.
The same font is still working fine in the editors.
VS Code version: Code 1.40.0 (86405ea, 2019-11-06T17:02:13.381Z)
OS version: Windows_NT x64 10.0.18362
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Extensions (20)
Works fine in the editor:
But not in the terminal window:
The text was updated successfully, but these errors were encountered: