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 <elliott.codes@gmail.com>
This commit is contained in:
Junseong Park 2024-10-03 01:35:35 +09:00 committed by GitHub
parent 167af4bc1d
commit 845991c0e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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