Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Add missing UI font settings to "Configuring Zed" (#18267)

Junseong Park845991c0e59a
diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md
index fbd5fa53cfb..230255597e3 100644
--- a/docs/src/configuring-zed.md
+++ b/docs/src/configuring-zed.md
@@ -2180,6 +2180,64 @@ Float values between `0.0` and `0.9`, where:
}
```
+## UI Font Family
+
+- Description: The name of the font to use for text in the UI.
+- Setting: `ui_font_family`
+- Default: `Zed Plex Sans`
+
+**Options**
+
+The name of any font family installed on the system.
+
+## UI Font Features
+
+- Description: The OpenType features to enable for text in the UI.
+- Setting: `ui_font_features`
+- Default: `null`
+- Platform: macOS and Windows.
+
+**Options**
+
+Zed supports all OpenType features that can be enabled or disabled for a given UI font, as well as setting values for font features.
+
+For example, to disable font ligatures, add the following to your settings:
+
+```json
+{
+ "ui_font_features": {
+ "calt": false
+ }
+}
+```
+
+You can also set other OpenType features, like setting `cv01` to `7`:
+
+```json
+{
+ "ui_font_features": {
+ "cv01": 7
+ }
+}
+```
+
+## UI Font Fallbacks
+
+- Description: The font fallbacks to use for text in the UI.
+- Setting: `ui_font_fallbacks`
+- Default: `null`
+- Platform: macOS and Windows.
+
+**Options**
+
+For example, to use `Nerd Font` as a fallback, add the following to your settings:
+
+```json
+{
+ "ui_font_fallbacks": ["Nerd Font"]
+}
+```
+
## UI Font Size
- Description: The default font size for text in the UI.
@@ -2190,6 +2248,16 @@ Float values between `0.0` and `0.9`, where:
`integer` values from `6` to `100` pixels (inclusive)
+## UI Font Weight
+
+- Description: The default font weight for text in the UI.
+- Setting: `ui_font_weight`
+- Default: `400`
+
+**Options**
+
+`integer` values between `100` and `900`
+
## An example configuration:
```json