From 845991c0e59a34e2d98300237956ede553c44289 Mon Sep 17 00:00:00 2001 From: Junseong Park Date: Thu, 3 Oct 2024 01:35:35 +0900 Subject: [PATCH] docs: Add missing UI font settings to "Configuring Zed" (#18267) - Add missing `ui_font` options in `configuring-zed.md` Release Notes: - N/A --------- Co-authored-by: Marshall Bowers --- docs/src/configuring-zed.md | 68 +++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md index fbd5fa53cfbd849ffa89f71e4d12766c340527af..230255597e35cfb6ef80fa0156c997a0c1f2b3c9 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