summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-17 23:14:19 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-17 23:14:19 +0100
commit49bb7f9a2bd2404fa6e14208041ef6a94068c1ec (patch)
treee915ef96a1429def1135a8e17a9cfd875c37b728 /tests
parent8cdfc7faafc1d8df60d44e5db9d1c9e26345675b (diff)
Switch from name to ratio for font stretch parameter 📐
Diffstat (limited to 'tests')
-rw-r--r--tests/typ/library/font.typ5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/typ/library/font.typ b/tests/typ/library/font.typ
index 566f2e87..c00bff5a 100644
--- a/tests/typ/library/font.typ
+++ b/tests/typ/library/font.typ
@@ -18,7 +18,7 @@
#font(weight: bold)[Bold]
// Set stretch (not available, matching closest).
-#font(stretch: ultra-condensed)[Condensed]
+#font(stretch: 50%)[Condensed]
// Set family.
#font("PT Sans")[Sans serif]
@@ -45,5 +45,8 @@ Emoji: 🐪, 🌋, 🏞
// Warning: 15-19 should be between 100 and 900
#font(weight: 2700)
+// Warning: 16-21 should be between 50% and 200%
+#font(stretch: 1000%)
+
// Error: 7-27 unexpected argument
#font(something: "invalid")