From 6eb8e8341132ef889ac2f3b51823e8b9ad9af0c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B0=8F=E7=99=BD?= <364772080@qq.com> Date: Fri, 31 May 2024 23:34:16 +0800 Subject: [PATCH] docs: Update font features (#12229) This follows up the changes in #11611 and #11898 Release Notes: - N/A --- docs/src/configuring-zed.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md index 8ae991613fbd5a72d148074c8f7b7a205a5fb8d8..a9027c78f321e3b90bd5afaeaf3b9e186dcadf61 100644 --- a/docs/src/configuring-zed.md +++ b/docs/src/configuring-zed.md @@ -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 } } ```