Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Font ligatures don't work v3 #3607

Open

Description

@orangecoloured
  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: 10.14.4 macOS Mojave
  • Hyper.app version: 3.0.0
  • Link of a Gist with the contents of your .hyper.js:
  • Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
  • The issue is reproducible in vanilla Hyper.app: Is Vanilla or with the hyper-font-ligatures add-on.

Issue

I'm using Fira Code font and the ligatures don't work. I found this issue #914 and tried installing the hyper-font-ligatures add-on or adding this css

termCSS: `
  x-screen x-row {
    font-variant-ligatures: initial;
  }
`,

but none of these seem to work.

Activity

  1. mhall commented on May 6, 2019

    @mhall

    At least on Windows 10, setting webGLRenderer: false in your config file will bring them back (assuming you still have the hyper-font-ligatures plugin installed). This will also fix some of the other rendering anomalies of v3, although sadly not all.

  2. changed the title [-]Font ligatures don't work[/-] [+]Font ligatures don't work v3[/+] on May 6, 2019
  3. orangecoloured commented on May 6, 2019

    @orangecoloured
    Author

    Oh. Yes, working now.
    So, ligatures in exchange for performance :)

  4. nurtext commented on May 8, 2019

    @nurtext

    @orangecoloured So why did you close this bug?

  5. orangecoloured commented on May 8, 2019

    @orangecoloured
    Author

    @nurtext Because technically this bug was resolved. The ligatures work without WebGL renderer.
    I think another issue should be created addressing this.

  6. nurtext commented on May 8, 2019

    @nurtext

    @orangecoloured I understand, but for me it's still open because turning off the newly introduced renderer isn't a valid fix. Ever tried tailing or cating some logs with the old renderer? It made Hyper almost useless for me. Now Hyper is back in the game (at least for me), but ligatures are a must have in 2019 IMHO.

  7. mhall commented on May 8, 2019

    @mhall

    Yeah, I would recommend reopening this as well.

  8. depadiernos commented on Aug 5, 2019

    @depadiernos

    So, based on this comment, looks like there's a fix for this in xterm.js. Would be really awesome to get that pulled in so ligatures will work without a performance hit.

  9. GitSquared commented on Sep 17, 2019

    @GitSquared
    Contributor

    xTerm 4 supports this through the new Addon system: https://github.com/xtermjs/xterm-addon-ligatures

    However, the xterm fork used by Hyper is severely out of date: 56 commits ahead, 1290 commits behind.

    Edit: Switching the fork for latest xTerm works... except the WebGL renderer is quite broken - I believe it should be possible to fix it but I haven't researched that much. Also, the fork contains valuable work that needs to be rebased on xterm@4.

  10. nurtext commented on Sep 27, 2019

    @nurtext

    @GitSquared Looks like they're already on it: #3830

  11. Stanzilla commented on Sep 27, 2019

    @Stanzilla
    Contributor

    @GitSquared our effort in that PR is currently stuck on broken resizing

  12. GitSquared commented on Oct 9, 2019

    @GitSquared
    Contributor

    Now that #3830 has been merged, I'm sending a PR for enabling font ligatures.

  13. 47 remaining items

  14. ryanerwin commented on Jun 8, 2021

    @ryanerwin

    Also having this issue with Fira Code from nerd fonts:

    image

    Using "Hack Nerd Font" on Ubuntu 21.04 with Hyper 3.0.2, I'm getting the same powerline alignment issue that @altosaar reported.

    image

  15. unpinned this issue on Jun 10, 2021
  16. jezmck commented on Aug 11, 2021

    @jezmck
    Contributor

    Not working for me with latest version on MacOS, and with no changes to the settings other than:

    ...
            fontFamily: '"Fira Code", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
    ...
    

    image

  17. jacob-israel-turner commented on Aug 24, 2021

    @jacob-israel-turner

    I'm confused why this is still an issue - it seems that xterm.js has resolved most issues with ligatures:
    xtermjs/xterm.js#3286
    xtermjs/xterm.js#2847

    Is there a bug in Hyper that's preventing ligatures from working?

    Turning off WebGL is, unfortunately, a non-starter for a lot of us. The stuttering caused by using Vim in Canvas gives me a headache.

    EDIT: Looks like we're just not enabling ligatures if webgl is enabled:

    if (props.disableLigatures !== true && !useWebGL) {

    EDIT2: I tried updating that line to ignore the WebGL check, but ligatures still appear broken. Might need a core contributor to dig into this.

    EDIT3: Figured it out, had wonky config locally. Here's a PR to enable ligatures with the WebGL renderer! #5888

    CC: @Stanzilla @GitSquared since you both seemed invested in this issue.

  18. added a commit that references this issue on Aug 24, 2021
  19. LabhanshAgrawal commented on Aug 25, 2021

    @LabhanshAgrawal
    Contributor

    We're not enabling ligatures with webgl as it's causing issues with rendering #5757

  20. jacob-israel-turner commented on Sep 5, 2021

    @jacob-israel-turner

    @LabhanshAgrawal has requested that we not enable WebGL + Ligatures in hyper directly, so I've instead opened a PR with hyper-font-ligatures that enables WebGL + Ligatures: tolbertam/hyper-font-ligatures#11

    EDIT: As I'm playing with this again, I'm seeing more issues than I thought. Especially while using Vim. The WebGL + Ligature combination appears to be better than what's been released, but people should still be cautious when enabling both.

  21. thoernle commented on Jun 5, 2023

    @thoernle

    Has this issue been resolved? This was the reason I stopped using Hyper

  22. kizerkizer commented on Dec 3, 2024

    @kizerkizer

    Unfortunate this was never fixed as I understand? Back to iTerm2 it is...

  23. kizerkizer commented on Dec 3, 2024

    @kizerkizer

    Well, I owe you an apology! iTerm2 doesn't use Metal (GPU accelerated rendering) if ligatures are enabled either. Apparently it's difficult to render ligatures given the current methods for rendering text on the GPU (remember that the GPU just knows about triangles and textures). But don't give up. Those ligatures look cool, lol.

  24. Tyriar commented on Dec 3, 2024

    @Tyriar
    Contributor

    xterm.js does support GPU rendering with ligatures now, last month I fixed some bugs in xterm.js and added official support to VS Code via the terminal.integrated.fontLigatures setting. Hyper was always on the very early support that had bugs that sat for years without getting any attention unfortunately.

  25. regisbsb commented on Dec 3, 2024

    @regisbsb

    Does it mean that if hyper updates to the latest xterm it will get the "fix" for free?

  26. Tyriar commented on Dec 3, 2024

    @Tyriar
    Contributor

    @regisbsb not sure why it's not working, but yes if Hyper updates to the latest beta tag of @xterm/xterm and @xterm/addon-ligatures and removes the webgl restriction it would probably work just fine. I see Hyper is still on xterm/xterm-addon-ligatures so the update might be a little more involved than that.

  27. raidenxu commented on Dec 15, 2024

    @raidenxu

    {
    fontFamily: '"CaskaydiaCove Nerd Font", "Fira Code",
    webGLRenderer: false,
    disableLigatures: false,
    }

    This works for me on macOS 15.2 (24C101)
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions