From 556979c83bd142f812f0e33df1c913724e518743 Mon Sep 17 00:00:00 2001 From: Yip Coekjan <69834864+Coekjan@users.noreply.github.com> Date: Mon, 6 May 2024 20:57:16 +0800 Subject: Change `smallcaps` into an element function (#3981) Co-authored-by: Laurenz --- tests/ref/smallcaps-show-rule.png | Bin 0 -> 1202 bytes tests/suite/text/smallcaps.typ | 9 +++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/ref/smallcaps-show-rule.png (limited to 'tests') diff --git a/tests/ref/smallcaps-show-rule.png b/tests/ref/smallcaps-show-rule.png new file mode 100644 index 00000000..bac72ea7 Binary files /dev/null and b/tests/ref/smallcaps-show-rule.png differ diff --git a/tests/suite/text/smallcaps.typ b/tests/suite/text/smallcaps.typ index 6f977244..6f36a028 100644 --- a/tests/suite/text/smallcaps.typ +++ b/tests/suite/text/smallcaps.typ @@ -1,3 +1,12 @@ --- smallcaps --- // Test smallcaps. #smallcaps[Smallcaps] + +--- smallcaps-show-rule --- +// There is no dedicated smallcaps font in typst-dev-assets, so we just use some +// other font to test this show rule. +#show smallcaps: set text(font: "PT Sans") +#smallcaps[Smallcaps] + +#show smallcaps: set text(fill: red) +#smallcaps[Smallcaps] -- cgit v1.2.3