Skip to content

Commit 8534d0e

Browse files
committed
feat: font section in customizing editor docs
1 parent 92d4f8d commit 8534d0e

3 files changed

Lines changed: 38 additions & 30 deletions

File tree

docs/03-customizing-editor.md

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,68 +8,75 @@ import VideoPlayer from '@site/src/components/Video/player';
88

99
> **DRAFT — partial.** Themes, Sidebar Collapse Toggle, and Tabbed Sidebar are still outlined as bullet points and need to be written. Moved sections (Zoom, Line Height, Indent Guides, Editor Rulers, No-Distractions) still need a style cleanup pass per the no-weasel-words rule. Remove this banner and the `draft: true` frontmatter when ready to publish.
1010
11-
This section covers everything that lets you make **Phoenix Code** look and feel the way you want from full themes down to individual visual toggles.
11+
This section covers everything that lets you make **Phoenix Code** look and feel the way you want, from full themes down to individual visual toggles.
1212

1313
---
1414

1515
## Themes
1616

1717
Phoenix Code ships with two built-in themes:
1818

19-
- **Phoenix Dark Neo** default dark theme
20-
- **Phoenix Light Neo** default light theme
19+
- **Phoenix Dark Neo**: default dark theme
20+
- **Phoenix Light Neo**: default light theme
2121

2222
You can install more themes, create your own, or remove themes you have installed, see [Extensions](./popular-extensions).
2323

2424
### Switching the Theme
2525

2626
Open `View > Themes...` and pick a theme from the **Current Theme** dropdown. The change applies immediately.
2727

28-
![Current Theme and Use Theme Scrollbars in the Themes Settings dialog](./images/editingText/themes-settings-theme.png "View > Themes... pick a theme and toggle theme scrollbars")
28+
![Current Theme and Use Theme Scrollbars in the Themes Settings dialog](./images/editingText/themes-settings-theme.png "View > Themes...: pick a theme and toggle theme scrollbars")
2929

30-
Click **Get More...** to browse community themes — see [Extensions](./popular-extensions) for installation steps.
30+
Click **Get More...** to browse community themes. See [Extensions](./popular-extensions) for installation steps.
3131

3232
### Use Theme Scrollbars
3333

3434
The **Use Theme Scrollbars** checkbox controls scrollbar styling.
3535

36-
- **On** (default) scrollbars use colors from the active theme.
37-
- **Off** scrollbars use your operating system's default style.
36+
- **On** (default): scrollbars use colors from the active theme.
37+
- **Off**: scrollbars use your operating system's default style.
3838

3939
---
4040

41-
## Zoom and Font Size Adjustments
42-
The **Zoom UI and Fonts** options allow you to adjust the overall interface scale and font size.
41+
## Font
4342

44-
### Zoom UI
45-
**Zoom In** :- Enlarges the overall UI, making all elements larger.
43+
Phoenix Code uses **SourceCodePro** as the default editor font. Change the size and family from `View > Themes...`.
4644

47-
**Zoom Out** :- Reduces the overall UI, making all elements smaller.
45+
![Font Size and Font Family in the Themes Settings dialog](./images/editingText/themes-settings-font.png "Font Size and Font Family fields in View > Themes...")
4846

49-
### Font Size Adjustment
50-
**Increase Font Size** :- Enlarges the text in the editor without affecting other UI elements.
47+
### Font Size
5148

52-
**Decrease Font Size** :- Reduces the text size in the editor without affecting other UI elements.
49+
Type a value into the **Font Size** field. Accepted units: `px` (1 to 72) or `em` (0.1 to 7.2). Decimals work, e.g. `12.5px`. The default is `12px`.
5350

54-
**Restore Font Size** :- Resets the editor text to its default size.
51+
Keyboard shortcuts to resize the editor text:
5552

53+
| Action | Windows / Linux | macOS |
54+
| --- | --- | --- |
55+
| Increase font size | `Ctrl + Shift + +` | `Cmd + Shift + +` |
56+
| Decrease font size | `Ctrl + Shift + -` | `Cmd + Shift + -` |
57+
| Restore default | `Ctrl + Shift + (` | `Cmd + Shift + (` |
5658

57-
### Using Zoom UI and Fonts Options
58-
#### Using Menu
59-
![Zoom Image](images/editingText/zoom.png "Click on View & hover over Zoom UI and Fonts")
59+
:::note
60+
The shortcuts above change only the editor text size. To zoom the entire interface at once, use these:
6061

61-
1. Click on "View" in the menu bar.
62-
2. Hover over "Zoom UI and Fonts".
63-
3. Select the desired option from the submenu.
62+
| Action | Windows / Linux | macOS |
63+
| --- | --- | --- |
64+
| Zoom in | `Ctrl + +` | `Cmd + +` |
65+
| Zoom out | `Ctrl + -` | `Cmd + -` |
6466

65-
#### Using Keyboard Shortcuts
66-
* **Zoom In**: `Ctrl + +` (`Cmd + +` on MacOs)
67-
* **Zoom Out**: `Ctrl + -` (`Cmd + -` on MacOs)
68-
* **Increase Font Size**: `Ctrl + Shift + +` (`Cmd + Shift + +` on MacOs)
69-
* **Decrease Font Size**: `Ctrl + Shift + -` (`Cmd + Shift + -` on MacOs)
70-
* **Restore Font Size**: `Ctrl + Shift + (` (`Cmd + Shift + (` on MacOs)
67+
The current zoom level is shown next to **Zoom In** under `View > Zoom UI and Fonts`.
68+
:::
7169

72-
*Note :- The current zoom level is displayed next to the **Zoom In** option.*
70+
### Font Family
71+
72+
Type a CSS `font-family` string into the **Font Family** field. The first available font in the list is used:
73+
74+
```
75+
'Fira Code', 'JetBrains Mono', monospace
76+
```
77+
78+
Wrap names containing spaces in single quotes.
79+
> The font must be installed on your system. Phoenix Code only bundles `SourceCodePro` (the default).
7380
7481
---
7582

@@ -82,7 +89,8 @@ The **Line Height** feature lets you customize the vertical spacing between line
8289
To adjust line height:
8390
1. Click on `View` in the menu bar.
8491
2. Navigate to the `Themes...` option.
85-
3. Use the Line Height slider to set a value between 1 and 3. The default is 1.5.
92+
3. Use the Line Height slider to set a value between 1 and 3. The default is 1.5.
93+
8694
![Line Height slider in Themes Settings](./images/editingText/themes-settings-line-height.png "Go to View > Themes... to adjust line height")
8795

8896
Adjustments apply instantly, updating the editor dynamically.
38.1 KB
Loading

docs/images/editingText/zoom.png

-116 KB
Binary file not shown.

0 commit comments

Comments
 (0)