diff options
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/code/call.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/bidi.typ | 14 | ||||
| -rw-r--r-- | tests/typ/text/chinese.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/font.typ | 16 | ||||
| -rw-r--r-- | tests/typ/text/shaping.typ | 8 | ||||
| -rw-r--r-- | tests/typ/text/whitespace.typ | 4 |
6 files changed, 23 insertions, 23 deletions
diff --git a/tests/typ/code/call.typ b/tests/typ/code/call.typ index 76953580..5351eb29 100644 --- a/tests/typ/code/call.typ +++ b/tests/typ/code/call.typ @@ -24,7 +24,7 @@ #test(alias(alias), "function") // Library function `font` returns template. -#test(type(font(12pt)), "template") +#test(type(font(size: 12pt)), "template") --- // Callee expressions. diff --git a/tests/typ/text/bidi.typ b/tests/typ/text/bidi.typ index 078cb1f9..2e7236ca 100644 --- a/tests/typ/text/bidi.typ +++ b/tests/typ/text/bidi.typ @@ -3,7 +3,7 @@ --- // Test reordering with different top-level paragraph directions. #let text = [Text טֶקסט] -#font("EB Garamond", "Noto Serif Hebrew") +#font(family: ("EB Garamond", "Noto Serif Hebrew")) #lang("he") {text} #lang("de") {text} @@ -11,7 +11,7 @@ // Test that consecutive, embedded LTR runs stay LTR. // Here, we have two runs: "A" and italic "B". #let text = [أنت A_B_مطرC] -#font("EB Garamond", "Noto Sans Arabic") +#font(family: ("EB Garamond", "Noto Sans Arabic")) #lang("ar") {text} #lang("de") {text} @@ -19,32 +19,32 @@ // Test that consecutive, embedded RTL runs stay RTL. // Here, we have three runs: "גֶ", bold "שֶׁ", and "ם". #let text = [Aגֶ*שֶׁ*םB] -#font("EB Garamond", "Noto Serif Hebrew") +#font(family: ("EB Garamond", "Noto Serif Hebrew")) #lang("he") {text} #lang("de") {text} --- // Test embedding up to level 4 with isolates. -#font("EB Garamond", "Noto Serif Hebrew", "Twitter Color Emoji") +#font(family: ("EB Garamond", "Noto Serif Hebrew", "Twitter Color Emoji")) #lang(dir: rtl) א\u{2066}A\u{2067}Bב\u{2069}? --- // Test hard line break (leads to two paragraphs in unicode-bidi). -#font("Noto Sans Arabic", "EB Garamond") +#font(family: ("Noto Sans Arabic", "EB Garamond")) #lang("ar") Life المطر هو الحياة \ الحياة تمطر is rain. --- // Test spacing. -#font("EB Garamond", "Noto Serif Hebrew") +#font(family: ("EB Garamond", "Noto Serif Hebrew")) L #h(1cm) ריווחR \ Lריווח #h(1cm) R --- // Test inline object. -#font("Noto Serif Hebrew", "EB Garamond") +#font(family: ("Noto Serif Hebrew", "EB Garamond")) #lang("he") קרנפיםRh#image("../../res/rhino.png", height: 11pt)inoחיים diff --git a/tests/typ/text/chinese.typ b/tests/typ/text/chinese.typ index 0800a220..3fe790ea 100644 --- a/tests/typ/text/chinese.typ +++ b/tests/typ/text/chinese.typ @@ -1,7 +1,7 @@ // Test chinese text from Wikipedia. --- -#font("Noto Serif CJK SC") +#font(family: "Noto Serif CJK SC") 是美国广播公司电视剧《迷失》第3季的第22和23集,也是全剧的第71集和72集 由执行制作人戴蒙·林道夫和卡尔顿·库斯编剧,导演则是另一名执行制作人杰克·本德 diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ index 317037e2..f3a9495b 100644 --- a/tests/typ/text/font.typ +++ b/tests/typ/text/font.typ @@ -2,9 +2,9 @@ --- // Set same font size in three different ways. -#font(22pt)[A] -#font(200%)[A] -#font(16.5pt + 50%)[A] +#font(size: 22pt)[A] +#font(size: 200%)[A] +#font(size: 16.5pt + 50%)[A] // Do nothing. #font[Normal] @@ -19,13 +19,13 @@ #font(stretch: 50%)[Condensed] // Set family. -#font("PT Sans")[Sans serif] +#font(family: "PT Sans")[Sans serif] // Emoji. Emoji: 🐪, 🌋, 🏞 // Math. -#font("Latin Modern Math")[ +#font(family: "Latin Modern Math")[ ∫ 𝛼 + 3𝛽 d𝑡 ] @@ -49,9 +49,9 @@ Emoji: 🐪, 🌋, 🏞 --- // Test class definitions. #font(sans-serif: "PT Sans") -#font(sans-serif)[Sans-serif.] \ -#font(monospace)[Monospace.] \ -#font(monospace, monospace: ("Nope", "Latin Modern Math"))[Math.] +#font(family: sans-serif)[Sans-serif.] \ +#font(family: monospace)[Monospace.] \ +#font(family: monospace, monospace: ("Nope", "Latin Modern Math"))[Math.] --- // Ref: false diff --git a/tests/typ/text/shaping.typ b/tests/typ/text/shaping.typ index ba543e71..9c6f2966 100644 --- a/tests/typ/text/shaping.typ +++ b/tests/typ/text/shaping.typ @@ -7,11 +7,11 @@ Le fira // This should just shape nicely. -#font("Noto Sans Arabic") +#font(family: "Noto Sans Arabic") دع النص يمطر عليك // This should form a three-member family. -#font("Twitter Color Emoji") +#font(family: "Twitter Color Emoji") 👩👩👦 🤚🏿 // These two shouldn't be affected by a zero-width joiner. @@ -20,7 +20,7 @@ Le fira --- // Test font fallback. -#font("EB Garamond", "Noto Sans Arabic", "Twitter Color Emoji") +#font(family: ("EB Garamond", "Noto Sans Arabic", "Twitter Color Emoji")) // Font fallback for emoji. A😀B @@ -40,6 +40,6 @@ A🐈中文B --- // Test reshaping. -#font("Noto Serif Hebrew") +#font(family: "Noto Serif Hebrew") #lang("he") ס \ טֶ diff --git a/tests/typ/text/whitespace.typ b/tests/typ/text/whitespace.typ index 418c3a12..29c3e990 100644 --- a/tests/typ/text/whitespace.typ +++ b/tests/typ/text/whitespace.typ @@ -36,11 +36,11 @@ A #for _ in (none,) {"B"}C --- // Test that a run consisting only of whitespace isn't trimmed. -A#font("PT Sans")[ ]B +A#font(family: "PT Sans")[ ]B --- // Test font change after space. -Left #font("PT Sans")[Right]. +Left #font(family: "PT Sans")[Right]. --- // Test that space at start of line is not trimmed. |
