diff options
| author | Wenzhuo Liu <mgt@oi-wiki.org> | 2023-12-19 17:36:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-19 10:36:18 +0100 |
| commit | 81ff34d80dac76c345c54e36b7bd203efa3be710 (patch) | |
| tree | ba7baf4e08b0b3b5aac89c5ba3e90ab649453000 /tests/typ/text | |
| parent | 111a69f6aaf0dd470dd2319f8cff29194aa0da08 (diff) | |
Add stroke for text (#2970)
Diffstat (limited to 'tests/typ/text')
| -rw-r--r-- | tests/typ/text/stroke.typ | 21 |
1 files changed, 21 insertions, 0 deletions
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 |
