summaryrefslogtreecommitdiff
path: root/tests/typ/layout
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/layout')
-rw-r--r--tests/typ/layout/columns.typ2
-rw-r--r--tests/typ/layout/enum-numbering.typ2
-rw-r--r--tests/typ/layout/page-style.typ2
-rw-r--r--tests/typ/layout/page.typ2
-rw-r--r--tests/typ/layout/par-bidi.typ6
-rw-r--r--tests/typ/layout/par-indent.typ2
-rw-r--r--tests/typ/layout/par-knuth.typ2
-rw-r--r--tests/typ/layout/transform.typ2
8 files changed, 10 insertions, 10 deletions
diff --git a/tests/typ/layout/columns.typ b/tests/typ/layout/columns.typ
index eafb0518..5f853d73 100644
--- a/tests/typ/layout/columns.typ
+++ b/tests/typ/layout/columns.typ
@@ -3,7 +3,7 @@
---
// Test normal operation and RTL directions.
#set page(height: 3.25cm, width: 7.05cm, columns: 2)
-#set text(lang: "ar", "Noto Sans Arabic", "Linux Libertine")
+#set text(lang: "ar", font: ("Noto Sans Arabic", "Linux Libertine"))
#set columns(gutter: 30pt)
#box(fill: conifer, height: 8pt, width: 6pt) وتحفيز
diff --git a/tests/typ/layout/enum-numbering.typ b/tests/typ/layout/enum-numbering.typ
index ee4b25b9..3eaf352e 100644
--- a/tests/typ/layout/enum-numbering.typ
+++ b/tests/typ/layout/enum-numbering.typ
@@ -37,7 +37,7 @@
---
// Test numbering with closure and nested lists.
-#set text("New Computer Modern")
+#set text(font: "New Computer Modern")
#set enum(numbering: (..args) => math.mat(args.pos()), full: true)
+ A
+ B
diff --git a/tests/typ/layout/page-style.typ b/tests/typ/layout/page-style.typ
index b4a509ef..0d097554 100644
--- a/tests/typ/layout/page-style.typ
+++ b/tests/typ/layout/page-style.typ
@@ -24,5 +24,5 @@
#set page("a4")
#set page("a5")
#set page("a11", flipped: true, fill: eastern)
-#set text("Roboto", white)
+#set text(font: "Roboto", white)
#smallcaps[Typst]
diff --git a/tests/typ/layout/page.typ b/tests/typ/layout/page.typ
index 2815e230..ff050e55 100644
--- a/tests/typ/layout/page.typ
+++ b/tests/typ/layout/page.typ
@@ -23,7 +23,7 @@
---
// Test page fill.
#set page(width: 80pt, height: 40pt, fill: eastern)
-#text(15pt, "Roboto", fill: white, smallcaps[Typst])
+#text(15pt, font: "Roboto", fill: white, smallcaps[Typst])
#page(width: 40pt, fill: none, margin: (top: 10pt, rest: auto))[Hi]
---
diff --git a/tests/typ/layout/par-bidi.typ b/tests/typ/layout/par-bidi.typ
index aa881a7b..d8c05d23 100644
--- a/tests/typ/layout/par-bidi.typ
+++ b/tests/typ/layout/par-bidi.typ
@@ -10,7 +10,7 @@
// Test that consecutive, embedded LTR runs stay LTR.
// Here, we have two runs: "A" and italic "B".
#let content = par[أنت A#emph[B]مطرC]
-#set text("PT Sans", "Noto Sans Arabic")
+#set text(font: ("PT Sans", "Noto Sans Arabic"))
#text(lang: "ar", content)
#text(lang: "de", content)
@@ -18,7 +18,7 @@
// Test that consecutive, embedded RTL runs stay RTL.
// Here, we have three runs: "גֶ", bold "שֶׁ", and "ם".
#let content = par[Aגֶ#strong[שֶׁ]םB]
-#set text("Linux Libertine", "Noto Serif Hebrew")
+#set text(font: ("Linux Libertine", "Noto Serif Hebrew"))
#text(lang: "he", content)
#text(lang: "de", content)
@@ -29,7 +29,7 @@
---
// Test hard line break (leads to two paragraphs in unicode-bidi).
-#set text(lang: "ar", "Noto Sans Arabic", "PT Sans")
+#set text(lang: "ar", font: ("Noto Sans Arabic", "PT Sans"))
Life المطر هو الحياة \
الحياة تمطر is rain.
diff --git a/tests/typ/layout/par-indent.typ b/tests/typ/layout/par-indent.typ
index 8efda42f..0cb937bf 100644
--- a/tests/typ/layout/par-indent.typ
+++ b/tests/typ/layout/par-indent.typ
@@ -20,7 +20,7 @@ starts a paragraph without indent.
Except if you have another paragraph in them.
-#set text(8pt, lang: "ar", "Noto Sans Arabic", "Linux Libertine")
+#set text(8pt, lang: "ar", font: ("Noto Sans Arabic", "Linux Libertine"))
#set par(leading: 8pt)
= Arabic
diff --git a/tests/typ/layout/par-knuth.typ b/tests/typ/layout/par-knuth.typ
index 0467c9a1..50f9280a 100644
--- a/tests/typ/layout/par-knuth.typ
+++ b/tests/typ/layout/par-knuth.typ
@@ -1,6 +1,6 @@
#set page(width: auto, height: auto)
#set par(leading: 4pt, justify: true)
-#set text(family: "New Computer Modern")
+#set text(font: "New Computer Modern")
#let story = [
In olden times when wishing still helped one, there lived a king whose
diff --git a/tests/typ/layout/transform.typ b/tests/typ/layout/transform.typ
index de193f72..22a94532 100644
--- a/tests/typ/layout/transform.typ
+++ b/tests/typ/layout/transform.typ
@@ -23,7 +23,7 @@
[X]
}
-#set text("New Computer Modern", size)
+#set text(font: "New Computer Modern", size)
Neither #tex, \
nor #xetex!