-
Notifications
You must be signed in to change notification settings - Fork 1.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
Webgl: Support rendering underline attribute #2251
Comments
Can you elaborate on what feature you need I cannot understand it 😅 |
@Tyriar another issue I've noticed is that font ligatures don't appear to work in the new renderer. Are these two issues similar? (in the sense they're not implemented?) I'm new to the project, would love to contribute - not sure where the best place to start would be! |
@ryanwarsaw ligatures are broken with all renderers at the moment, We need to tweak the addon in #2318 Once that's done, for WebGL we would need to handle these: xterm.js/src/renderer/Renderer.ts Lines 201 to 207 in 5a9e6fe
In the WebGL renderer: xterm.js/addons/xterm-addon-webgl/src/WebglRenderer.ts Lines 225 to 231 in 5a9e6fe
Right now they do nothing but they need to register/deregister and then be used when drawing the characters together and treat them as a simple glyph. For example if the addon says ">=" is a ligature, it should draw ">=" together in a single glyph and save it to the texture atlas like that, you might be able to leverage WelglChatAtlas.getRasterizedGlyphCombinedChar to do that. You might be able to hack in the ligatures addon to get it to work of bring it into this repo (from https://github.com/xtermjs/xterm-addon-ligatures) to get started on this, it should be relatively easy to do #2318 if you want to give that a shot. |
Feature tracked in xtermjs#2251
Webgl addon added in #1790
The text was updated successfully, but these errors were encountered: