summaryrefslogtreecommitdiff
path: root/tests/suite/text/font.typ
diff options
context:
space:
mode:
authorNiklas Mohrin <dev@niklasmohrin.de>2024-04-17 17:25:16 +0200
committerGitHub <noreply@github.com>2024-04-17 15:25:16 +0000
commit0523f22d839df60dcb7a983caf5c82016c972ff9 (patch)
tree457537a4cdcb2a91590dc71891580860649daeef /tests/suite/text/font.typ
parent21c78abd6eecd0f6b3208405c7513be3bbd8991c (diff)
Warn about unknown font families during parsing (#3854)
Diffstat (limited to 'tests/suite/text/font.typ')
-rw-r--r--tests/suite/text/font.typ12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/suite/text/font.typ b/tests/suite/text/font.typ
index 47ec6419..ecc4c5c7 100644
--- a/tests/suite/text/font.typ
+++ b/tests/suite/text/font.typ
@@ -64,3 +64,15 @@ Emoji: 🐪, 🌋, 🏞
--- text-bad-named-argument ---
// Error: 11-31 unexpected argument: something
#set text(something: "invalid")
+
+--- text-unknown-font-family-warning ---
+#text(font: "linux libertine", "I exist, ")
+// Warning: 13-27 unknown font family: non-existing
+#text(font: "non-existing", "but")
+// Warning: 17-36 unknown font family: also-non-existing
+#set text(font: "also-non-existing")
+I
+// Warning: 23-56 unknown font family: list-of
+// Warning: 23-56 unknown font family: non-existing-fonts
+#let var = text(font: ("list-of", "non-existing-fonts"))[don't]
+#var