Skip to content

Commit

Permalink
docs: Update font features (#12229)
Browse files Browse the repository at this point in the history
This follows up the changes in #11611 and #11898 

Release Notes:

- N/A
  • Loading branch information
JunkuiZhang committed May 31, 2024
1 parent 4c51ee7 commit 6eb8e83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/src/configuring-zed.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
```
Expand Down

0 comments on commit 6eb8e83

Please sign in to comment.