-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fira Code ligatures not showing #914
Comments
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 |
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. |
@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 |
|
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). 😄 |
@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 👍 |
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) |
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. |
latest hyper update on macOS Mojave, font ligatures don't work. Would like a useful way of implementing them. |
@williamleiby Try the method for this issue. Worked perfectly for me. |
did you find a fix? |
Any updates on this? Just discovered Fira Code and really want to get it working on Hyper. |
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.
The text was updated successfully, but these errors were encountered: