diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-04 12:49:46 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-04 13:21:31 +0200 |
| commit | ba5622b7b90b23e61942a9f4e6460bf9ea0b4bc8 (patch) | |
| tree | 374c326c7375094f370165e47dbe24dd01f16c11 /tests/typ | |
| parent | 507c5fc92563560426db0d86c0348880b0493467 (diff) | |
Move smallcaps into separate function
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/layout/page-style.typ | 4 | ||||
| -rw-r--r-- | tests/typ/layout/page.typ | 2 | ||||
| -rw-r--r-- | tests/typ/style/show-text.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/features.typ | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/typ/layout/page-style.typ b/tests/typ/layout/page-style.typ index f27551b2..b4a509ef 100644 --- a/tests/typ/layout/page-style.typ +++ b/tests/typ/layout/page-style.typ @@ -24,5 +24,5 @@ #set page("a4") #set page("a5") #set page("a11", flipped: true, fill: eastern) -#set text("Roboto", white, smallcaps: true) -Typst +#set text("Roboto", white) +#smallcaps[Typst] diff --git a/tests/typ/layout/page.typ b/tests/typ/layout/page.typ index 3157ebf9..918f674b 100644 --- a/tests/typ/layout/page.typ +++ b/tests/typ/layout/page.typ @@ -23,7 +23,7 @@ --- // Test page fill. #set page(width: 80pt, height: 40pt, fill: eastern) -#text(15pt, "Roboto", fill: white, smallcaps: true)[Typst] +#text(15pt, "Roboto", fill: white, smallcaps[Typst]) #page(width: 40pt, fill: none, margins: (top: 10pt, rest: auto))[Hi] --- diff --git a/tests/typ/style/show-text.typ b/tests/typ/style/show-text.typ index 3bc116f5..f4ecb7e1 100644 --- a/tests/typ/style/show-text.typ +++ b/tests/typ/style/show-text.typ @@ -3,7 +3,7 @@ --- // Test classic example. #set text("Roboto") -#show phrase: "Der Spiegel" as text(smallcaps: true, [#phrase]) +#show phrase: "Der Spiegel" as smallcaps[#phrase] Die Zeitung Der Spiegel existiert. --- diff --git a/tests/typ/text/features.typ b/tests/typ/text/features.typ index 3d1ad6dc..739230c9 100644 --- a/tests/typ/text/features.typ +++ b/tests/typ/text/features.typ @@ -8,7 +8,7 @@ --- // Test smallcaps. #set text("Roboto") -#text(smallcaps: true)[Smallcaps] +#smallcaps[Smallcaps] --- // Test alternates and stylistic sets. |
