docs: Update font features (#12229)

This follows up the changes in #11611 and #11898 

Release Notes:

- N/A
This commit is contained in:
张小白 2024-05-31 23:34:16 +08:00 committed by GitHub
parent 4c51ee7816
commit 6eb8e83411
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,14 +110,15 @@ The name of any font family installed on the user's system
**Options**
Zed supports a subset of OpenType features that can be enabled or disabled for a given buffer or terminal font. The following [OpenType features](https://en.wikipedia.org/wiki/List_of_typographic_features) can be enabled or disabled too: `calt`, `case`, `cpsp`, `frac`, `liga`, `onum`, `ordn`, `pnum`, `ss01`, `ss02`, `ss03`, `ss04`, `ss05`, `ss06`, `ss07`, `ss08`, `ss09`, `ss10`, `ss11`, `ss12`, `ss13`, `ss14`, `ss15`, `ss16`, `ss17`, `ss18`, `ss19`, `ss20`, `subs`, `sups`, `swsh`, `titl`, `tnum`, `zero`.
Zed supports all OpenType features that can be enabled, disabled or set a value to a font feature for a given buffer or terminal font.
For example, to disable ligatures for a given font you can add the following to your settings:
For example, to disable ligatures and set `7` to `cv01` for a given font you can add the following to your settings:
```json
{
"buffer_font_features": {
"calt": false
"calt": false,
"cv01": 7
}
}
```