diff options
| author | 3w36zj6 <52315048+3w36zj6@users.noreply.github.com> | 2024-04-30 21:24:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-30 12:24:38 +0000 |
| commit | eac2200c978afffc3abef191364d5d5e4d6afc3b (patch) | |
| tree | 3e27c91f2ba6b621bce58f2c88dfad86bc239d82 | |
| parent | 6ba94c4518680adc08b42998ee97610d5adf663b (diff) | |
Add the list of built-in fonts in the documentation (#4026)
| -rw-r--r-- | crates/typst/src/text/mod.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/crates/typst/src/text/mod.rs b/crates/typst/src/text/mod.rs index 0b8818e8..e55a35a6 100644 --- a/crates/typst/src/text/mod.rs +++ b/crates/typst/src/text/mod.rs @@ -102,11 +102,14 @@ pub struct TextElem { /// - In the web app, you can see the list of available fonts by clicking on /// the "Ag" button. You can provide additional fonts by uploading `.ttf` /// or `.otf` files into your project. They will be discovered - /// automatically. - /// - /// - Locally, Typst uses your installed system fonts. In addition, you can - /// use the `--font-path` argument or `TYPST_FONT_PATHS` environment - /// variable to add directories that should be scanned for fonts. Run + /// automatically. The priority is: project fonts > server fonts. + /// + /// - Locally, Typst uses your installed system fonts or embedded fonts in + /// the CLI, which are `Linux Libertine`, `New Computer Modern`, + /// `New Computer Modern Math`, and `DejaVu Sans Mono`. In addition, you + /// can use the `--font-path` argument or `TYPST_FONT_PATHS` environment + /// variable to add directories that should be scanned for fonts. The + /// priority is: `--font-paths` > system fonts > embedded fonts. Run /// `typst fonts` to see the fonts that Typst has discovered on your /// system. /// |
