mirror of
https://github.com/typst/typst
synced 2025-05-21 04:25:28 +08:00
- font - color -> fill - shorthands for families and size - decoration functions - color -> stroke - strength -> thickness - position -> offset - invert offsets: now positive goes downwards just like the rest of typst
20 lines
540 B
XML
20 lines
540 B
XML
// Test text decorations.
|
|
|
|
---
|
|
#strike[Statements dreamt up by the utterly deranged.]
|
|
|
|
Sometimes, we work #strike(10pt, extent: 5%)[in secret].
|
|
There might be #strike(stroke: rgb("abcdef88"), thickness: 10pt, extent: 5%)[redacted]
|
|
things.
|
|
|
|
#underline(offset: 5pt)[Further below.]
|
|
|
|
---
|
|
#underline(rgb("fc0030"))[Critical information is conveyed here.]
|
|
#underline[Still important, but not #underline(0pt)[mission ]critical.]
|
|
|
|
#font(fill: rgb("fc0030"), underline[Change with the wind.])
|
|
|
|
---
|
|
#overline(underline[Running amongst the wolves.])
|