summaryrefslogtreecommitdiff
path: root/tests/typ/text/font.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-04-13 10:39:45 +0200
committerGitHub <noreply@github.com>2024-04-13 08:39:45 +0000
commit020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch)
treec0027ad22046e2726c22298461327823d6b88d53 /tests/typ/text/font.typ
parent72dd79210602ecc799726fc096b078afbb47f299 (diff)
Better test runner (#3922)
Diffstat (limited to 'tests/typ/text/font.typ')
-rw-r--r--tests/typ/text/font.typ66
1 files changed, 0 insertions, 66 deletions
diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ
deleted file mode 100644
index 736ded41..00000000
--- a/tests/typ/text/font.typ
+++ /dev/null
@@ -1,66 +0,0 @@
-// Test configuring font properties.
-
----
-// Set same font size in three different ways.
-#text(20pt)[A]
-#text(2em)[A]
-#text(size: 15pt + 0.5em)[A]
-
-// Do nothing.
-#text()[Normal]
-
-// Set style (is available).
-#text(style: "italic")[Italic]
-
-// Set weight (is available).
-#text(weight: "bold")[Bold]
-
-// Set stretch (not available, matching closest).
-#text(stretch: 50%)[Condensed]
-
-// Set font family.
-#text(font: "IBM Plex Serif")[Serif]
-
-// Emoji.
-Emoji: 🐪, 🌋, 🏞
-
-// Colors.
-#[
- #set text(fill: eastern)
- This is #text(rgb("FA644B"))[way more] colorful.
-]
-
-// Transparency.
-#block(fill: green)[
- #set text(fill: rgb("FF000080"))
- This text is transparent.
-]
-
-// Disable font fallback beyond the user-specified list.
-// Without disabling, New Computer Modern Math would come to the rescue.
-#set text(font: ("PT Sans", "Twitter Color Emoji"), fallback: false)
-2π = 𝛼 + 𝛽. ✅
-
----
-// Test string body.
-#text("Text") \
-#text(red, "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
-#set text(false)
-
----
-// Error: 18-24 expected "normal", "italic", or "oblique"
-#set text(style: "bold", weight: "thin")
-
----
-// Error: 23-27 unexpected argument
-#set text(size: 10pt, 12pt)
-
----
-// Error: 11-31 unexpected argument: something
-#set text(something: "invalid")