Some ligature characters are wider than normal
See original GitHub issueWe’re using this addon in hyper For characters which have ligatures when they are repeated (-, #, = etc.), if you have a large number of them (eg. in loading bar during yarn install) the slight increase in width becomes apparent and the text gets ahead of the cursor, then on typing some different character, it renders in the correct place. But ends up overlapping with the earlier characters as they are also there. Eg.
Here the top one is with the addon and bottom one without. Same string ########################################################]
is pasted in both.
Details
- Browser and browser and/or electron version: Electron 7.1.9
- OS version: macOs Catalina 10.15.3
- xterm.js version: 4.4.0
- xterm-addon-ligatures version: 0.2.1
- Font: Fira Code
Steps to reproduce
Put the string ########################################################]
with some font which has ligatures for ##
(or any such character, I tested with #, - and =), the ]
will overlap #
s
P.S. I couldn’t test with any other app as I don’t know which ones are using it, and this addon was not available in the xterm demo. P.P.S. If you want to check it in hyper, use the ci build from here as stable release doesn’t have ligatures yet.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)
Top GitHub Comments
Ah ok, thanks for letting us know.
Happens with 4.3.0 also