Skip to content

Commit

Permalink
font struct (#355)
Browse files Browse the repository at this point in the history
Co-authored-by: Pankaj Bhojwani <pabhojwa@microsoft.com>
  • Loading branch information
PankajBhojwani and PankajBhojwani authored Jul 9, 2021
1 parent 9cf4d96 commit 766b41a
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions TerminalDocs/customize-settings/profile-appearance.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,19 @@ This is the name of the color scheme used in the profile. Color schemes are defi

**Default value:** `"Campbell"`

### Font face
### Font

This is the structure within which the other font settings must be defined. An example of what this could look like in the JSON file is shown below.

**Property name:** `font`

**Necessity:** Optional

### Font Face

This is the name of the font face used in the profile. The terminal will try to fallback to Consolas if this can't be found or is invalid. To learn about the other variants of the default font, Cascadia Mono, visit the [Cascadia Code page](./../cascadia-code.md).

**Property name:** `fontFace`
**Property name:** `face` (defined within the `font` object)

**Necessity:** Optional

Expand All @@ -53,7 +61,7 @@ This is the name of the font face used in the profile. The terminal will try to

This sets the profile's font size in points.

**Property name:** `fontSize`
**Property name:** `size` (defined within the `font` object)

**Necessity:** Optional

Expand All @@ -65,14 +73,24 @@ This sets the profile's font size in points.

This sets the weight (lightness or heaviness of the strokes) for the profile's font.

**Property name:** `fontWeight`
**Property name:** `weight` (defined within the `font` object)

**Necessity:** Optional

**Accepts:** `"normal"`, `"thin"`, `"extra-light"`, `"light"`, `"semi-light"`, `"medium"`, `"semi-bold"`, `"bold"`, `"extra-bold"`, `"black"`, `"extra-black"`, or an integer corresponding to the numeric representation of the OpenType font weight

**Default value:** `"normal"`

### Font example

```json
"font": {
"face": "Cascadia Mono",
"size": 12,
"weight": "normal"
}
```

## Retro terminal effects

:::row:::
Expand Down

0 comments on commit 766b41a

Please sign in to comment.