After updating Hyperterm to 0.8.3 through homebrew cask, the Fira Code font's ligatures don't work, even though the font itself is being used
In the above screenshot, the 0 especially gives away that FiraCode is being used and not Menlo.
Yet as you can see from the arrow function above, the ligatures are not being used.
This CSS will re-enable ligatures:
x-screen x-row { font-variant-ligatures: contextual; }
FWIW, even if I add the CSS to Hyper's config (the css
key), the x-row
elements don't get that style. 馃
As suggested in another issue, I added the following to the configuration to make ligatures work. I am using Hasklig instead of Fira Code, though, but I expect the font not to be the issue.
definitely a bug, but also a dup #874
Thanks for the replies. Unfortunately I didn't see that issue since because it was marked closed, not a bug, and didn't contain the word Fira.
Thanks for the workaround, @0x6c7862 and @dak0rn ! Works great for now.
I didn't see any code in this repo explicitly turning them off so my guess is that a dependency upstream somewhere changed and broke this behavior.
I'd vote for ligatures being enabled by default unless there's a good reason not to. People coming to a terminal based on JS, HTML, and CSS will expect ligatures to work out of the box.
Hmm. I wasn't able to get it to work:
@ccorcos the relevant lines:
// font family with optional fallbacks
fontFamily: '"Fira Code", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
and
// custom css to embed in the terminal window
termCSS: `
x-screen x-row {
font-variant-ligatures: initial;
}
`,
wait, now its working! :)
Is it posible to add a simple boolean
option to trigger this feature?
enableLigatures
pls :D
It is @gluons
Just curious; why are ligatures disabled by default? Is there an inherent overhead?
Just published https://github.com/timneutkens/hyper-ligatures. Guess we can close the issue 馃憤
@timneutkens Just fyi (you probably already saw, but for completeness sake). As Hyper v2 uses a different terminal emulation, that is using different tags/classNames as rows, there should be a change to your plugin to accommodate for this. (I created a PR on your repo with the changes I think are necessary to support the new implementation as well).
:smile:
@timneutkens this will break in future updates of hyper. (More exactly, when we change to xterm 3, based on canvas) you should state that in your readme 馃憤
@albinekb by then lets add ligatures built in ;p
Does the above solution work with the very latest pre release version?
Nope @SanketDG hyper won't have support for ligatures until xterm3+ does 馃憤
=( i will miss ligatures
no working for me in Ubuntu and hyper 1.4.8
This is incredibly sad, but at least they show up in Sublime so I'm not too disappointed 馃槃 (confirmed not working as of 2.0.0-11)
Ref xtermjs/xterm.js#958
addon for xterm with ligatures here https://github.com/xtermjs/xterm-addon-ligatures (from above issue)
Win 10, the latest hyper.app build (I have just updated It from the stable channel), ligatures does not appear (i.e. =>
does not show as an arrow)
latest hyper update on macOS Mojave, font ligatures don't work. Would like a useful way of implementing them.
https://github.com/zeit/hyper/issues/2793
@williamleiby Try the method for this issue. Worked perfectly for me.
Win 10, the latest hyper.app build (I have just updated It from the stable channel), ligatures does not appear (i.e.
=>
does not show as an arrow)
did you find a fix?
Any updates on this? Just discovered Fira Code and really want to get it working on Hyper.
@dankolesnikov #3607
Most helpful comment
@ccorcos the relevant lines:
and