-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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 ligatures have limited length even when the font supports longer ligatures #235988
Comments
Nice find 👍 It is indeed a problem in xterm.js, likely it's just hitting some max width for the canvas we render to. |
Upstream: xtermjs/xterm.js#5246 |
The upstream change will support glyphs up to the width of the maximum supported texture size. You could still hit this limit on very wide screens but this should handle most cases now. A better fix would need a decent amount of refactoring. See xtermjs/xterm.js#5278 |
I don't know what's happening with the equals that look like quotes, but the long length case is because we now support up to the maximum texture size reported by webgpu. The better approach is to split out the ligature glyphs into their cell sizes, so we can support an unlimited number of them. I didn't do this as it would need a much bigger change. Will keep this open to track that. |
(this appears to be a bug with the new "enable ligatures in terminal" thing that is marked "preview" in settings)
Does this issue occur when all extensions are disabled?: Yes
I am using Fira Code for both the terminal and the editor, which supports "infinite ligatures", one of which is joining multiple #####################'s into one continuous mark by connecting the horizontal strokes.
This works perfectly fine in the editor windows. However when I turn on the ligatures in the terminal, it only works for about ~32 characters before the ligaturized characters vanish.
With ligatures enabled:
With ligatures disabled:
(these are homebrew install command output btw)
system info
this is probably a problem with xterm.js but on the chance that it's with vs code's implementation of ligatures I figured I'd report it here first and let the vs code maintainers decide whether it needs to be reported upstream.
sorry for not using the built-in issue reporter but it won't let me embed an image in the body text 🤷 that is a separate problem
The text was updated successfully, but these errors were encountered: