diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-08 17:08:30 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-09 12:02:35 +0200 |
| commit | 29eb13ca6214461a4b0deb63d589cd39ad6d41c2 (patch) | |
| tree | c86797d440cfcc801c87a3c64f479e39f2c068b1 /tests/typ/text | |
| parent | 712c00ecb72b67da2c0788e5d3eb4dcc6366b2a7 (diff) | |
Sum color and length into stroke
Diffstat (limited to 'tests/typ/text')
| -rw-r--r-- | tests/typ/text/deco.typ | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/typ/text/deco.typ b/tests/typ/text/deco.typ index 071208ac..5e9de5b3 100644 --- a/tests/typ/text/deco.typ +++ b/tests/typ/text/deco.typ @@ -20,12 +20,14 @@ --- #let redact = strike.with(10pt, extent: 0.05em) -#let highlight = strike.with( - stroke: rgb("abcdef88"), - thickness: 10pt, - extent: 0.05em, -) +#let highlight = strike.with(stroke: 10pt + rgb("abcdef88"), extent: 0.05em) // Abuse thickness and transparency for redacting and highlighting stuff. Sometimes, we work #redact[in secret]. There might be #highlight[redacted] things. + underline() + +--- +// Test stroke folding. +#set underline(stroke: 2pt, offset: 2pt) +#underline(text(red, [DANGER!])) |
