diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-12-21 00:40:09 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-12-21 00:40:09 +0100 |
| commit | e59de77f96d43fa675c5c733ccf39ec2c22e949e (patch) | |
| tree | 84d746c1d1ad863b8c8e2e9fda86ed842634a838 /tests/typ | |
| parent | 2b660968aa7e1e8efb7c396e17066a1a98c8c10e (diff) | |
Allow only a few predefined font classes in [font] 🚧
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/func-font-error.typ | 6 | ||||
| -rw-r--r-- | tests/typ/func-font-fallback.typ | 2 |
2 files changed, 7 insertions, 1 deletions
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. 🚀 |
