docs: Make it clearer how to disable ligatures with buffer_font_features (#13645)

This PR updates the docs around disabling font ligatures to make it
clearer which OpenType features need to be changed.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-06-28 09:24:15 -04:00 committed by GitHub
parent a295b90597
commit 2972bdc0e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,12 +112,21 @@ The name of any font family installed on the user's system
Zed supports all OpenType features that can be enabled or disabled for a given buffer or terminal font, as well as setting values for font features.
For example, to disable ligatures and set `cv01` to `7` for a given font you can add the following to your settings:
For example, to disable font ligatures, add the following to your settings:
```json
{
"buffer_font_features": {
"calt": false
}
}
```
You can also set other OpenType features, like setting `cv01` to `7`:
```json
{
"buffer_font_features": {
"calt": false,
"cv01": 7
}
}