From eac2200c978afffc3abef191364d5d5e4d6afc3b Mon Sep 17 00:00:00 2001 From: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com> Date: Tue, 30 Apr 2024 21:24:38 +0900 Subject: [PATCH] Add the list of built-in fonts in the documentation (#4026) --- crates/typst/src/text/mod.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/typst/src/text/mod.rs b/crates/typst/src/text/mod.rs index 0b8818e80..e55a35a68 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. + /// automatically. The priority is: project fonts > server fonts. /// - /// - 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 + /// - 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. ///