From 81ff34d80dac76c345c54e36b7bd203efa3be710 Mon Sep 17 00:00:00 2001 From: Wenzhuo Liu Date: Tue, 19 Dec 2023 17:36:18 +0800 Subject: Add stroke for text (#2970) --- tests/typ/text/stroke.typ | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/typ/text/stroke.typ (limited to 'tests/typ/text') 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 -- cgit v1.2.3