summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/stroke.pngbin0 -> 97009 bytes
-rw-r--r--tests/typ/text/stroke.typ21
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/ref/text/stroke.png b/tests/ref/text/stroke.png
new file mode 100644
index 00000000..d6d85c28
--- /dev/null
+++ b/tests/ref/text/stroke.png
Binary files differ
diff --git a/tests/typ/text/stroke.typ b/tests/typ/text/stroke.typ
new file mode 100644
index 00000000..713bbe2f
--- /dev/null
+++ b/tests/typ/text/stroke.typ
@@ -0,0 +1,21 @@
+#set text(size: 20pt)
+#set page(width: auto)
+测试字体 #lorem(5)
+
+#text(stroke: 0.3pt + red)[测试字体#lorem(5)]
+
+#text(stroke: 0.5pt + red)[测试字体#lorem(5)]
+
+#text(stroke: 0.7pt + red)[测试字体#lorem(5)]
+
+#text(stroke: 1pt + red)[测试字体#lorem(5)]
+
+#text(stroke: 2pt + red)[测试字体#lorem(5)]
+
+#text(stroke: 5pt + red)[测试字体#lorem(5)]
+
+#text(stroke: 7pt + red)[测试字体#lorem(5)]
+
+#text(stroke: (paint: blue, thickness: 1pt, dash: "dashed"))[测试字体#lorem(5)]
+
+#text(stroke: 1pt + gradient.linear(..color.map.rainbow))[测试字体#lorem(5)] // gradient doesn't work now