diff options
| author | 3w36zj6 <52315048+3w36zj6@users.noreply.github.com> | 2024-04-30 21:24:38 +0900 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-05-17 14:27:59 +0200 |
| commit | de6090b15554f2ee0ba6929acc6ad69584bcc9d2 (patch) | |
| tree | b6f484d850d8d14de2dde55dd54fb363552d6740 | |
| parent | ac888e085af40ca24878b2ec3678a18a11f14ce3 (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 f7c19d8e..b06ec373 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. /// |
