summaryrefslogtreecommitdiff
path: root/tests/typ/text
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-25 19:14:08 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-25 20:04:30 +0100
commit7597b997890647aa0546ec7bfef1eae4e33cedcb (patch)
tree286f2f30fe4814d1b5171ed166c9f162b152ce93 /tests/typ/text
parent49940fde7398a642f88c444700d482436266909d (diff)
New default style
Diffstat (limited to 'tests/typ/text')
-rw-r--r--tests/typ/text/features.typ6
-rw-r--r--tests/typ/text/font.typ2
-rw-r--r--tests/typ/text/hyphenate.typ5
-rw-r--r--tests/typ/text/microtype.typ2
-rw-r--r--tests/typ/text/tracking-spacing.typ2
5 files changed, 7 insertions, 10 deletions
diff --git a/tests/typ/text/features.typ b/tests/typ/text/features.typ
index cae240f3..c706afed 100644
--- a/tests/typ/text/features.typ
+++ b/tests/typ/text/features.typ
@@ -7,7 +7,6 @@
---
// Test smallcaps.
-#set text("Roboto")
#smallcaps[Smallcaps]
---
@@ -22,27 +21,24 @@ fi vs. #text(ligatures: false)[No fi]
---
// Test number type.
-#set text("Roboto")
#set text(number-type: "old-style")
0123456789 \
#text(number-type: auto)[0123456789]
---
// Test number width.
-#set text("Roboto")
#text(number-width: "proportional")[0123456789] \
#text(number-width: "tabular")[3456789123] \
#text(number-width: "tabular")[0123456789]
---
// Test extra number stuff.
-#set text("IBM Plex Sans")
+#set text("IBM Plex Serif")
0 vs. #text(slashed-zero: true)[0] \
1/2 vs. #text(fractions: true)[1/2]
---
// Test raw features.
-#set text("Roboto")
#text(features: ("smcp",))[Smcp] \
fi vs. #text(features: (liga: 0))[No fi]
diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ
index d2add0f1..e832ab1d 100644
--- a/tests/typ/text/font.typ
+++ b/tests/typ/text/font.typ
@@ -41,7 +41,7 @@ Emoji: 馃惇, 馃寢, 馃彏
#text(red, "Text") \
#text("Ubuntu", blue, "Text") \
#text([Text], teal, "IBM Plex Serif") \
-#text(forest, "Latin Modern Roman", [Text]) \
+#text(forest, "New Computer Modern", [Text]) \
---
// Error: 11-16 unexpected argument
diff --git a/tests/typ/text/hyphenate.typ b/tests/typ/text/hyphenate.typ
index 4dc5255f..42946a88 100644
--- a/tests/typ/text/hyphenate.typ
+++ b/tests/typ/text/hyphenate.typ
@@ -5,13 +5,14 @@
#set text(hyphenate: true)
#set page(width: auto)
#grid(
- columns: (70pt, 60pt),
+ columns: (50pt, 50pt),
[Warm welcomes to Typst.],
text(lang: "el")[未喂伪渭蔚蟻委蟽渭伪蟿伪. \ 位伪蟿蟻蔚蠀蟿蠈蟼],
)
---
// Test disabling hyphenation for short passages.
+#set page(width: 110pt)
#set text(hyphenate: true)
Welcome to wonderful experiences. \
@@ -45,6 +46,6 @@ It's a #emph[Tree]beard.
// punctuation instead of just the words. So this tests that we don't
// do that. The test passes if there's just one hyphenation between
// "net" and "works".
-#set page(width: 70pt)
+#set page(width: 60pt)
#set text(hyphenate: true)
#h(6pt) networks, the rest.
diff --git a/tests/typ/text/microtype.typ b/tests/typ/text/microtype.typ
index fc15ec07..252d163d 100644
--- a/tests/typ/text/microtype.typ
+++ b/tests/typ/text/microtype.typ
@@ -12,7 +12,7 @@
]
// Test hanging punctuation with RTL.
-#set text(lang: "he", "IBM Plex Sans", "Noto Serif Hebrew")
+#set text(lang: "he", "PT Sans", "Noto Serif Hebrew")
讘谞讬讬讛 谞讻讜谞讛 砖诇 诪砖驻讟讬诐 讗专讜讻讬诐 讚讜专砖转 讬讚注 讘砖驻讛. 讗讝 讘讜讗讜 谞讚讘专 注诇 诪讝讙 讛讗讜讜讬专.
---
diff --git a/tests/typ/text/tracking-spacing.typ b/tests/typ/text/tracking-spacing.typ
index e0bd2696..413194ba 100644
--- a/tests/typ/text/tracking-spacing.typ
+++ b/tests/typ/text/tracking-spacing.typ
@@ -11,7 +11,7 @@ I'm in#text(tracking: 0.15em + 1.5pt)[ spaace]!
---
// Test that tracking doesn't disrupt mark placement.
-#set text("IBM Plex Sans", "Noto Serif Hebrew")
+#set text("PT Sans", "Noto Serif Hebrew")
#set text(tracking: 0.3em)
讟侄拽住讟