All of the methods I've found for enabling font ligatures do not work in the 2.0.0 series of releases. Is there an example of the correct CSS for 2.0.0?
@mapitman - Hi Mark - according to comments on #914, hyper does not support ligatures due to current limitations with xterm3. That project still has ligatures as an open feature request according to the link below
Thanks @chaseleinart . I'll go ahead and close this issue then.
Looks like they published an official addon to enable font ligatures support: https://github.com/xtermjs/xterm-addon-ligatures
@SirWindfield Great catch! I just built hyper locally with that addon. I had to precompile the library (because it's typescript) and I ended up throwing it in the lib directory, but I was able to get ligatures working.
If I can figure out a better way to include this change and get it building, I'll submit a PR!
@mapitman We may want to reopen this now that it's been shown to work with the addon from xterm.
@BenMcH you can use https://www.npmjs.com/package/hyper-font-ligatures which adds the xterm plugin for you 馃帀
$ hyper i hyper-font-ligatures
Open the ~/.hyper.js
file using your favorite text editor and edit the
plugins array to include hyper-font-ligatures
:
plugins: ['hyper-font-ligatures'],
In both cases, a 'Full Reload' (View -> Full Reload
) is required.
Keep in mind this is very much in the early stages as it's using a beta build of the ligatures addon. We're still finalized on the API exposed in xterm.js, which means this might break at one point (and need xterm-addon-ligatures updated).
Most helpful comment
@BenMcH you can use https://www.npmjs.com/package/hyper-font-ligatures which adds the xterm plugin for you 馃帀
Installation
Using the built-in Hyper plugin manager
Using the .hyper.js file
Open the
~/.hyper.js
file using your favorite text editor and edit theplugins array to include
hyper-font-ligatures
:In both cases, a 'Full Reload' (
View -> Full Reload
) is required.