diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-08 21:42:36 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-08 21:42:36 +0200 |
| commit | 7e2c217cbc3805c4cae613baf4149cc82e10d503 (patch) | |
| tree | 66c36a7cff800bc0b6b4ddcd2e85112219cd830d /tests/typ/insert | |
| parent | 551e3af9d09a03aaa246cac46b98124bc10835ba (diff) | |
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
Diffstat (limited to 'tests/typ/insert')
| -rw-r--r-- | tests/typ/insert/circle.typ | 2 | ||||
| -rw-r--r-- | tests/typ/insert/square.typ | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/insert/circle.typ b/tests/typ/insert/circle.typ index fbb45435..8c35b988 100644 --- a/tests/typ/insert/circle.typ +++ b/tests/typ/insert/circle.typ @@ -30,7 +30,7 @@ Expanded by height. // Test relative sizing. #rect(width: 100%, height: 50pt, fill: rgb("aaa"))[ #align!(center, center) - #font!(color: white) + #font!(fill: white) #circle(radius: 10pt, fill: eastern)[A] #circle(height: 60%, fill: eastern)[B] #circle(width: 20% + 20pt, fill: eastern)[C] diff --git a/tests/typ/insert/square.typ b/tests/typ/insert/square.typ index f9efb98e..d003635d 100644 --- a/tests/typ/insert/square.typ +++ b/tests/typ/insert/square.typ @@ -5,7 +5,7 @@ Auto-sized square. \ #square(fill: eastern)[ #align!(center) #pad!(5pt) - #font!(color: white, weight: bold) + #font!(fill: white, weight: bold) Typst ] |
