summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/comment.pngbin682 -> 716 bytes
-rw-r--r--tests/ref/control/for.pngbin2877 -> 2762 bytes
-rw-r--r--tests/ref/control/if.pngbin1681 -> 1689 bytes
-rw-r--r--tests/ref/control/invalid.pngbin3743 -> 3700 bytes
-rw-r--r--tests/ref/control/let.pngbin1459 -> 1484 bytes
-rw-r--r--tests/ref/control/while.pngbin838 -> 886 bytes
-rw-r--r--tests/ref/expr/array.pngbin3922 -> 3448 bytes
-rw-r--r--tests/ref/expr/block-invalid.pngbin507 -> 506 bytes
-rw-r--r--tests/ref/expr/block.pngbin1367 -> 1423 bytes
-rw-r--r--tests/ref/expr/call-invalid.pngbin3093 -> 2944 bytes
-rw-r--r--tests/ref/expr/call.pngbin5661 -> 5260 bytes
-rw-r--r--tests/ref/expr/dict.pngbin1905 -> 1651 bytes
-rw-r--r--tests/ref/expr/ops.pngbin756 -> 807 bytes
-rw-r--r--tests/ref/full/coma.pngbin61297 -> 59535 bytes
-rw-r--r--tests/ref/library/box.pngbin2704 -> 2663 bytes
-rw-r--r--tests/ref/library/font.pngbin5386 -> 4484 bytes
-rw-r--r--tests/ref/library/hv.pngbin3961 -> 3898 bytes
-rw-r--r--tests/ref/library/page.pngbin8097 -> 8276 bytes
-rw-r--r--tests/ref/library/pagebreak.pngbin821 -> 814 bytes
-rw-r--r--tests/ref/library/rgb.pngbin3068 -> 2079 bytes
-rw-r--r--tests/ref/markup/emph.pngbin3112 -> 3060 bytes
-rw-r--r--tests/ref/markup/escape.pngbin4241 -> 4190 bytes
-rw-r--r--tests/ref/markup/heading.pngbin4285 -> 4623 bytes
-rw-r--r--tests/ref/markup/linebreak.pngbin3668 -> 3765 bytes
-rw-r--r--tests/ref/markup/nbsp.pngbin1854 -> 1745 bytes
-rw-r--r--tests/ref/markup/raw.pngbin8259 -> 7334 bytes
-rw-r--r--tests/ref/markup/strong.pngbin2810 -> 2799 bytes
-rw-r--r--tests/ref/repr.pngbin9367 -> 8695 bytes
-rw-r--r--tests/ref/spacing.pngbin5117 -> 5455 bytes
-rw-r--r--tests/ref/text.pngbin1892 -> 1853 bytes
-rw-r--r--tests/typ/full/coma.typ1
-rw-r--r--tests/typ/library/font.typ42
32 files changed, 16 insertions, 27 deletions
diff --git a/tests/ref/comment.png b/tests/ref/comment.png
index 7ab48b3a..9cee51b6 100644
--- a/tests/ref/comment.png
+++ b/tests/ref/comment.png
Binary files differ
diff --git a/tests/ref/control/for.png b/tests/ref/control/for.png
index cfbc8d08..f0d4a5cd 100644
--- a/tests/ref/control/for.png
+++ b/tests/ref/control/for.png
Binary files differ
diff --git a/tests/ref/control/if.png b/tests/ref/control/if.png
index 7db3a8ae..04724e1f 100644
--- a/tests/ref/control/if.png
+++ b/tests/ref/control/if.png
Binary files differ
diff --git a/tests/ref/control/invalid.png b/tests/ref/control/invalid.png
index 9a119088..c9822eeb 100644
--- a/tests/ref/control/invalid.png
+++ b/tests/ref/control/invalid.png
Binary files differ
diff --git a/tests/ref/control/let.png b/tests/ref/control/let.png
index 24f20c69..8960f8f5 100644
--- a/tests/ref/control/let.png
+++ b/tests/ref/control/let.png
Binary files differ
diff --git a/tests/ref/control/while.png b/tests/ref/control/while.png
index f0baf0af..55a6ed80 100644
--- a/tests/ref/control/while.png
+++ b/tests/ref/control/while.png
Binary files differ
diff --git a/tests/ref/expr/array.png b/tests/ref/expr/array.png
index 5bfddeb1..44331d9f 100644
--- a/tests/ref/expr/array.png
+++ b/tests/ref/expr/array.png
Binary files differ
diff --git a/tests/ref/expr/block-invalid.png b/tests/ref/expr/block-invalid.png
index 56471574..11899d86 100644
--- a/tests/ref/expr/block-invalid.png
+++ b/tests/ref/expr/block-invalid.png
Binary files differ
diff --git a/tests/ref/expr/block.png b/tests/ref/expr/block.png
index a3c03698..ffa59568 100644
--- a/tests/ref/expr/block.png
+++ b/tests/ref/expr/block.png
Binary files differ
diff --git a/tests/ref/expr/call-invalid.png b/tests/ref/expr/call-invalid.png
index 5d32238d..0d3783a8 100644
--- a/tests/ref/expr/call-invalid.png
+++ b/tests/ref/expr/call-invalid.png
Binary files differ
diff --git a/tests/ref/expr/call.png b/tests/ref/expr/call.png
index 5963d30e..b8086900 100644
--- a/tests/ref/expr/call.png
+++ b/tests/ref/expr/call.png
Binary files differ
diff --git a/tests/ref/expr/dict.png b/tests/ref/expr/dict.png
index b30f1300..351e0498 100644
--- a/tests/ref/expr/dict.png
+++ b/tests/ref/expr/dict.png
Binary files differ
diff --git a/tests/ref/expr/ops.png b/tests/ref/expr/ops.png
index 6c94ef9b..fb717dd0 100644
--- a/tests/ref/expr/ops.png
+++ b/tests/ref/expr/ops.png
Binary files differ
diff --git a/tests/ref/full/coma.png b/tests/ref/full/coma.png
index 081defeb..ed849404 100644
--- a/tests/ref/full/coma.png
+++ b/tests/ref/full/coma.png
Binary files differ
diff --git a/tests/ref/library/box.png b/tests/ref/library/box.png
index 9827c6c3..e8513d70 100644
--- a/tests/ref/library/box.png
+++ b/tests/ref/library/box.png
Binary files differ
diff --git a/tests/ref/library/font.png b/tests/ref/library/font.png
index 1e025c6f..92b5b7fc 100644
--- a/tests/ref/library/font.png
+++ b/tests/ref/library/font.png
Binary files differ
diff --git a/tests/ref/library/hv.png b/tests/ref/library/hv.png
index ee649fb6..13a352a4 100644
--- a/tests/ref/library/hv.png
+++ b/tests/ref/library/hv.png
Binary files differ
diff --git a/tests/ref/library/page.png b/tests/ref/library/page.png
index 97557437..1ddeeb3d 100644
--- a/tests/ref/library/page.png
+++ b/tests/ref/library/page.png
Binary files differ
diff --git a/tests/ref/library/pagebreak.png b/tests/ref/library/pagebreak.png
index 16eae0e4..dfb9dcaa 100644
--- a/tests/ref/library/pagebreak.png
+++ b/tests/ref/library/pagebreak.png
Binary files differ
diff --git a/tests/ref/library/rgb.png b/tests/ref/library/rgb.png
index a6e6f7d4..37aef599 100644
--- a/tests/ref/library/rgb.png
+++ b/tests/ref/library/rgb.png
Binary files differ
diff --git a/tests/ref/markup/emph.png b/tests/ref/markup/emph.png
index a3aae726..aec7fefb 100644
--- a/tests/ref/markup/emph.png
+++ b/tests/ref/markup/emph.png
Binary files differ
diff --git a/tests/ref/markup/escape.png b/tests/ref/markup/escape.png
index aafe09eb..54e61201 100644
--- a/tests/ref/markup/escape.png
+++ b/tests/ref/markup/escape.png
Binary files differ
diff --git a/tests/ref/markup/heading.png b/tests/ref/markup/heading.png
index f72806ec..b4aa1bbd 100644
--- a/tests/ref/markup/heading.png
+++ b/tests/ref/markup/heading.png
Binary files differ
diff --git a/tests/ref/markup/linebreak.png b/tests/ref/markup/linebreak.png
index 4769e291..dda5efa6 100644
--- a/tests/ref/markup/linebreak.png
+++ b/tests/ref/markup/linebreak.png
Binary files differ
diff --git a/tests/ref/markup/nbsp.png b/tests/ref/markup/nbsp.png
index 537a70eb..ad7591ac 100644
--- a/tests/ref/markup/nbsp.png
+++ b/tests/ref/markup/nbsp.png
Binary files differ
diff --git a/tests/ref/markup/raw.png b/tests/ref/markup/raw.png
index 198f9378..c0bf0160 100644
--- a/tests/ref/markup/raw.png
+++ b/tests/ref/markup/raw.png
Binary files differ
diff --git a/tests/ref/markup/strong.png b/tests/ref/markup/strong.png
index eb5e4d8e..cd6d670d 100644
--- a/tests/ref/markup/strong.png
+++ b/tests/ref/markup/strong.png
Binary files differ
diff --git a/tests/ref/repr.png b/tests/ref/repr.png
index 87400030..2e7755d3 100644
--- a/tests/ref/repr.png
+++ b/tests/ref/repr.png
Binary files differ
diff --git a/tests/ref/spacing.png b/tests/ref/spacing.png
index fb102e66..a8086177 100644
--- a/tests/ref/spacing.png
+++ b/tests/ref/spacing.png
Binary files differ
diff --git a/tests/ref/text.png b/tests/ref/text.png
index 88ce95e3..31d0b45e 100644
--- a/tests/ref/text.png
+++ b/tests/ref/text.png
Binary files differ
diff --git a/tests/typ/full/coma.typ b/tests/typ/full/coma.typ
index 4779c2c1..39404a35 100644
--- a/tests/typ/full/coma.typ
+++ b/tests/typ/full/coma.typ
@@ -1,6 +1,5 @@
// Configuration with `page` and `font` functions.
#page(width: 450pt, height: 380pt, margins: 1cm)
-#font("CMU Serif")
// There are variables and they can take normal values like strings, ...
#let city = "Berlin"
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. 🚀