typst/tests/typ/text/decorations.typ
Laurenz 7e2c217cbc Rename some library arguments
- 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
2021-07-08 21:42:36 +02:00

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.])