From 2c1976d4ea0890d20d0288c5d9e16da405d6c96d Mon Sep 17 00:00:00 2001 From: mkorje Date: Mon, 30 Jun 2025 21:49:25 +1000 Subject: [PATCH] Update docs --- crates/typst-library/src/math/style.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/crates/typst-library/src/math/style.rs b/crates/typst-library/src/math/style.rs index dd2c243c6..1fbf1b15f 100644 --- a/crates/typst-library/src/math/style.rs +++ b/crates/typst-library/src/math/style.rs @@ -86,12 +86,14 @@ pub fn cal( /// $ scr(S) $ /// ``` /// -/// Very few math fonts currently support differentiating `cal` and `scr`. Some -/// fonts support switching between the styles via -/// [font features]($text.features). +/// There are two ways that fonts can support differentiating `cal` and `scr`. +/// The first is using Unicode variation sequences. This works out of the box +/// in Typst, however only a few math fonts currently support this. /// -/// Say, for example, the roundhand style is available through the `ss01` -/// feature. Then, you could define your own version of `\mathscr` like this: +/// The other way is using [font features]($text.features). For example, the +/// roundhand style might be available in a font through the `ss01` feature. +/// To use it in Typst, you could then define your own version of `scr` like +/// this: /// /// ```example /// #let scr(it) = text(