summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRik Huijzer <github@huijzer.xyz>2024-04-13 10:48:07 +0200
committerLaurenz <laurmaedje@gmail.com>2024-05-17 14:27:59 +0200
commitb729fb325537da7c43a42040d8860146f4c1747b (patch)
treed9778eafb97c43b785b1c35629f588446191641b
parente039552f9d7bb49da8dafe7a83b87a08202eb30f (diff)
Mention `typst fonts` for `font` parameter (#3919)
-rw-r--r--crates/typst/src/text/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/typst/src/text/mod.rs b/crates/typst/src/text/mod.rs
index bcfca08d..f7c19d8e 100644
--- a/crates/typst/src/text/mod.rs
+++ b/crates/typst/src/text/mod.rs
@@ -106,7 +106,9 @@ pub struct TextElem {
///
/// - 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.
+ /// variable to add directories that should be scanned for fonts. Run
+ /// `typst fonts` to see the fonts that Typst has discovered on your
+ /// system.
///
/// ```example
/// #set text(font: "PT Sans")