summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
author+merlan #flirora <uruwi@protonmail.com>2024-08-05 15:19:56 -0400
committerGitHub <noreply@github.com>2024-08-05 19:19:56 +0000
commit6856d5e672d68d8ac82d327da774985327433a4f (patch)
treef153d492566c71016660ce03a0a3eaf79919d26c /tests
parent18ce3f111d66622a52bf5b0c58b3e1da3c646603 (diff)
Support multiple stylistic sets in text (#4685)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text-alternates-and-stylistic-sets.pngbin458 -> 1223 bytes
-rw-r--r--tests/suite/layout/inline/text.typ5
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/ref/text-alternates-and-stylistic-sets.png b/tests/ref/text-alternates-and-stylistic-sets.png
index 877542fc..48300021 100644
--- a/tests/ref/text-alternates-and-stylistic-sets.png
+++ b/tests/ref/text-alternates-and-stylistic-sets.png
Binary files differ
diff --git a/tests/suite/layout/inline/text.typ b/tests/suite/layout/inline/text.typ
index ba0e625e..369aba7f 100644
--- a/tests/suite/layout/inline/text.typ
+++ b/tests/suite/layout/inline/text.typ
@@ -9,7 +9,8 @@
// Test alternates and stylistic sets.
#set text(font: "IBM Plex Serif")
a vs #text(alternates: true)[a] \
-ß vs #text(stylistic-set: 5)[ß]
+ß vs #text(stylistic-set: 5)[ß] \
+10 years ago vs #text(stylistic-set: (1, 2, 3))[10 years ago]
--- text-ligatures ---
// Test text turning off (standard) ligatures of the font.
@@ -43,7 +44,7 @@ waltz vs #text(discretionary-ligatures: true)[waltz]
fi vs. #text(features: (liga: 0))[No fi]
--- text-stylistic-set-bad-type ---
-// Error: 26-31 expected integer or none, found boolean
+// Error: 26-31 expected none, integer, or array, found boolean
#set text(stylistic-set: false)
--- text-stylistic-set-out-of-bounds ---