diff options
| author | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2025-03-04 17:17:32 -0300 |
|---|---|---|
| committer | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2025-03-04 17:18:46 -0300 |
| commit | c4d7faf5271db65408a68a2da80b965a2de44363 (patch) | |
| tree | 372362398a5d0526b94fdc4488ee213088d784a4 | |
| parent | ec3c058220fca17779761e241209b4122b8c7290 (diff) | |
laurenz review adjustments
| -rw-r--r-- | crates/typst-library/src/text/raw.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/crates/typst-library/src/text/raw.rs b/crates/typst-library/src/text/raw.rs index 3dbd1d2d..3cec14f2 100644 --- a/crates/typst-library/src/text/raw.rs +++ b/crates/typst-library/src/text/raw.rs @@ -63,17 +63,20 @@ use crate::World; /// ``` /// /// # Styling -/// /// By default, the `raw` element uses the `DejaVu Sans Mono` font, available /// by default in Typst, with a smaller font size of `0.8em` (that is, 80% of -/// the global font size). You can customize these properties with a show-set -/// rule: +/// the global font size). This is because monospace fonts tend to be visually +/// larger than non-monospace fonts. +/// +/// You can customize these properties with show-set rules: /// /// ````example -/// // Switch to Cascadia Code for both inline and block raw. +/// // Switch to Cascadia Code for +/// // both inline and block raw. /// #show raw: set text(font: "Cascadia Code") -/// // Make raw blocks 20% larger than normal text, -/// // while keeping inline raw smaller than text. +/// +/// // Make raw blocks 20% larger than their default size. +/// // Keep inline raw at the same size. /// #show raw.where(block: true): set text(1.2em) /// /// Now using the `Cascadia Code` font for raw text. |
