summaryrefslogtreecommitdiff
path: root/tests/typ/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-02 17:26:39 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-02 17:31:41 +0100
commitd5d187a8c2415832e795eed7f3670073e27046da (patch)
tree530c81cadd39e315b3ce06b5e5f29616bd3010df /tests/typ/library
parent45abcf6b2bc247c8c0cba79eb1b0bc36a5d1df43 (diff)
Replace default fonts 🆕
Diffstat (limited to 'tests/typ/library')
-rw-r--r--tests/typ/library/font.typ42
1 files changed, 16 insertions, 26 deletions
diff --git a/tests/typ/library/font.typ b/tests/typ/library/font.typ
index 7f13e8a6..165bdc10 100644
--- a/tests/typ/library/font.typ
+++ b/tests/typ/library/font.typ
@@ -1,11 +1,9 @@
// Test configuring font properties.
-#font("PT Sans", 10pt)
-
// Set same font size in three different ways.
-#font(20pt)[A]
+#font(22pt)[A]
#font(200%)[A]
-#font(15pt + 50%)[A]
+#font(16.5pt + 50%)[A]
// Do nothing.
#font[Normal]
@@ -19,6 +17,20 @@
// Set stretch (not available, matching closest).
#font(stretch: ultra-condensed)[Condensed]
+// Set family.
+#font("PT Sans")[Sans serif]
+
+// Emoji.
+Emoji: 🐪, 🌋, 🏞
+
+// Math.
+#font("Latin Modern Math")[
+ ∫ 𝛼 + 3𝛽 d𝑡
+]
+
+---
+// Ref: false
+
// Error: 7-12 unexpected argument
#font(false)
@@ -32,25 +44,3 @@
// Error: 7-27 unexpected argument
#font(something: "invalid")
-
----
-// Test font fallback and class definitions.
-
-// Source Sans Pro + Segoe UI Emoji.
-Emoji: 🏀
-
-// CMU Serif + Noto Emoji.
-#font("CMU Serif", "Noto Emoji")[
- Emoji: 🏀
-]
-
-// Class definitions.
-#font(serif: ("CMU Serif", "Latin Modern Math", "Noto Emoji"))
-#font(serif)[
- Math: ∫ α + β ➗ 3
-]
-
-// Class definition reused.
-#font(sans-serif: "Noto Emoji")
-#font(sans-serif: ("Archivo", sans-serif))
-New sans-serif. 🚀