summaryrefslogtreecommitdiff
path: root/tests/typ/text/font.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/text/font.typ')
-rw-r--r--tests/typ/text/font.typ16
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ
index e832ab1d..9844d066 100644
--- a/tests/typ/text/font.typ
+++ b/tests/typ/text/font.typ
@@ -18,8 +18,8 @@
// Set stretch (not available, matching closest).
#text(stretch: 50%)[Condensed]
-// Set family.
-#text(family: "IBM Plex Serif")[Serif]
+// Set font family.
+#text(font: "IBM Plex Serif")[Serif]
// Emoji.
Emoji: 🐪, 🌋, 🏞
@@ -32,16 +32,16 @@ Emoji: 🐪, 🌋, 🏞
// Disable font fallback beyond the user-specified list.
// Without disabling, New Computer Modern Math would come to the rescue.
-#set text("PT Sans", "Twitter Color Emoji", fallback: false)
+#set text(font: ("PT Sans", "Twitter Color Emoji"), fallback: false)
2π = 𝛼 + 𝛽. ✅
---
// Test string body.
#text("Text") \
#text(red, "Text") \
-#text("Ubuntu", blue, "Text") \
-#text([Text], teal, "IBM Plex Serif") \
-#text(forest, "New Computer Modern", [Text]) \
+#text(font: "Ubuntu", blue, "Text") \
+#text([Text], teal, font: "IBM Plex Serif") \
+#text(forest, font: "New Computer Modern", [Text]) \
---
// Error: 11-16 unexpected argument
@@ -56,9 +56,5 @@ Emoji: 🐪, 🌋, 🏞
#set text(size: 10pt, 12pt)
---
-// Error: 32-39 unexpected argument
-#set text(family: "Helvetica", "Arial")
-
----
// Error: 11-31 unexpected argument
#set text(something: "invalid")