mirror of
https://github.com/typst/typst
synced 2025-08-19 17:38:32 +08:00
Update docs
This commit is contained in:
parent
4b13abc728
commit
2c1976d4ea
@ -86,12 +86,14 @@ pub fn cal(
|
|||||||
/// $ scr(S) $
|
/// $ scr(S) $
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// Very few math fonts currently support differentiating `cal` and `scr`. Some
|
/// There are two ways that fonts can support differentiating `cal` and `scr`.
|
||||||
/// fonts support switching between the styles via
|
/// The first is using Unicode variation sequences. This works out of the box
|
||||||
/// [font features]($text.features).
|
/// in Typst, however only a few math fonts currently support this.
|
||||||
///
|
///
|
||||||
/// Say, for example, the roundhand style is available through the `ss01`
|
/// The other way is using [font features]($text.features). For example, the
|
||||||
/// feature. Then, you could define your own version of `\mathscr` like this:
|
/// 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
|
/// ```example
|
||||||
/// #let scr(it) = text(
|
/// #let scr(it) = text(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user