Fira Code ligatures are used eventhough ligatures are disabled in the settings.json file. #17495

Closed
opened 2026-01-31 05:44:15 +00:00 by claunia · 5 comments
Owner

Originally created by @litesam on GitHub (May 17, 2022).

Windows Terminal version

1.12.10982.0

Windows build number

Microsoft Windows [Version 10.0.19044.1706]

Other Software

No response

Steps to reproduce

  1. Install Fira Code from their Git repository Link to repository
  2. In the settings.json file add the font configuration settings as:
"font": {
    "face": "Fira Code",
    "features": {
        "liga": 0
    }
}

Expected Behavior

image

Actual Behavior

image

Originally created by @litesam on GitHub (May 17, 2022). ### Windows Terminal version 1.12.10982.0 ### Windows build number Microsoft Windows [Version 10.0.19044.1706] ### Other Software _No response_ ### Steps to reproduce 1. Install Fira Code from their Git repository [Link to repository](https://github.com/tonsky/FiraCode) 2. In the settings.json file add the font configuration settings as: ```json "font": { "face": "Fira Code", "features": { "liga": 0 } } ``` ### Expected Behavior ![image](https://user-images.githubusercontent.com/34811358/168729592-b18acbb6-589b-4905-8a21-d20ff7cf8ec1.png) ### Actual Behavior ![image](https://user-images.githubusercontent.com/34811358/168729649-65789802-b4b9-4fa4-a36b-6cd21e6be3eb.png)
Author
Owner

@zadjii-msft commented on GitHub (May 17, 2022):

I was just testing this out locally. Apparently, to disable ligatures, you need


"font": {
    "face": "Fira Code",
    "features": {
        "liga": 0,
        "calt": 0
    }
},

Both "liga": 0 and "calt": 0 are apparently needed for Fira Code. Does that work for you/?

@zadjii-msft commented on GitHub (May 17, 2022): I was just testing this out locally. Apparently, to disable ligatures, you need ```jsonc "font": { "face": "Fira Code", "features": { "liga": 0, "calt": 0 } }, ``` Both `"liga": 0` and `"calt": 0` are apparently needed for Fira Code. Does that work for you/?
Author
Owner

@litesam commented on GitHub (May 17, 2022):

That works @zadjii-msft, I saw the documentation of this in the official website and din't find the calt variable, what does it mean btw, and Thanks!

@litesam commented on GitHub (May 17, 2022): That works @zadjii-msft, I saw the documentation of this in the official website and din't find the `calt` variable, what does it mean btw, and Thanks!
Author
Owner

@zadjii-msft commented on GitHub (May 17, 2022):

Glad to hear it!

calt is one of the many OpenType font feature, in this case "Contextual Alternates". I guess Fira Code uses that to toggle ligatures, rather than liga

@zadjii-msft commented on GitHub (May 17, 2022): Glad to hear it! `calt` is one of the many [OpenType font feature](https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist), in this case ["Contextual Alternates"](https://docs.microsoft.com/en-us/typography/opentype/spec/features_ae#calt). I guess Fira Code uses that to toggle ligatures, rather than `liga`
Author
Owner

@blueberrycarrot commented on GitHub (Jun 4, 2024):

Both "liga": 0 and "calt": 0 are apparently needed for Fira Code. Does that work for you/?

I wish this ligatures toggle was in proper settings UI, this was a pain to find and activate. But I'm glad it's doable, thank you.

@blueberrycarrot commented on GitHub (Jun 4, 2024): > Both `"liga": 0` and `"calt": 0` are apparently needed for Fira Code. Does that work for you/? I wish this ligatures toggle was in proper settings UI, this was a pain to find and activate. But I'm glad it's doable, thank you.
Author
Owner

@DHowett commented on GitHub (Jun 4, 2024):

I wish ...

Good news! In Terminal 1.21 (which is currently in Preview), you can now configure these things through the settings UI.

Image

@DHowett commented on GitHub (Jun 4, 2024): > I wish ... Good news! In Terminal 1.21 (which is currently in [Preview](https://aka.ms/terminal-preview)), you can now configure these things through the settings UI. ![Image](https://github.com/microsoft/terminal/assets/189190/fc15e535-cc1d-48a3-9235-8d9a398a3bb9)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17495