From 7e2c217cbc3805c4cae613baf4149cc82e10d503 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 8 Jul 2021 21:42:36 +0200 Subject: 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 --- tests/typ/insert/circle.typ | 2 +- tests/typ/insert/square.typ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/typ/insert') 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 ] -- cgit v1.2.3