From e59de77f96d43fa675c5c733ccf39ec2c22e949e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 21 Dec 2020 00:40:09 +0100 Subject: =?UTF-8?q?Allow=20only=20a=20few=20predefined=20font=20classes=20?= =?UTF-8?q?in=20[font]=20=F0=9F=9A=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/typ/func-font-error.typ | 6 ++++++ tests/typ/func-font-fallback.typ | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 tests/typ/func-font-error.typ (limited to 'tests/typ') diff --git a/tests/typ/func-font-error.typ b/tests/typ/func-font-error.typ new file mode 100644 index 00000000..34ff5837 --- /dev/null +++ b/tests/typ/func-font-error.typ @@ -0,0 +1,6 @@ +// Test error cases of the `font` function. + +[font: something="invalid"] + +// compare-ref: false +// error: 3:8-3:27 unexpected argument diff --git a/tests/typ/func-font-fallback.typ b/tests/typ/func-font-fallback.typ index 587baed7..b6509e62 100644 --- a/tests/typ/func-font-fallback.typ +++ b/tests/typ/func-font-fallback.typ @@ -11,7 +11,7 @@ Emoji: 🏀 [font: math][Math: ∫ α + β ➗ 3] // Class redefinition. -[font: sans-serif=("Noto Emoji",)] +[font: sans-serif="Noto Emoji"] [font: sans-serif=("Archivo", sans-serif)] New sans-serif. 🚀 -- cgit v1.2.3