summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYip Coekjan <69834864+Coekjan@users.noreply.github.com>2024-05-06 20:57:16 +0800
committerGitHub <noreply@github.com>2024-05-06 12:57:16 +0000
commit556979c83bd142f812f0e33df1c913724e518743 (patch)
tree8cb965e1c10e9c7903cb66be5f06829ca8c934be /tests
parent061319425b816907f4277c545d679a878b07fe3d (diff)
Change `smallcaps` into an element function (#3981)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/smallcaps-show-rule.pngbin0 -> 1202 bytes
-rw-r--r--tests/suite/text/smallcaps.typ9
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/ref/smallcaps-show-rule.png b/tests/ref/smallcaps-show-rule.png
new file mode 100644
index 00000000..bac72ea7
--- /dev/null
+++ b/tests/ref/smallcaps-show-rule.png
Binary files 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]