diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2024-03-01 09:18:32 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-01 09:18:32 +0000 |
| commit | 67ba8d6c0e7b3326283a8f67d2546cd52df59970 (patch) | |
| tree | d22794627b579d5425b682cde6a436518ef12f89 /tests | |
| parent | 030041466b5b8453ca23e43a6385f4592f78a56c (diff) | |
Add rounded corners and strokes to highlight (#3526)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/text/deco.png | bin | 55184 -> 64132 bytes | |||
| -rw-r--r-- | tests/typ/text/deco.typ | 12 |
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/ref/text/deco.png b/tests/ref/text/deco.png Binary files differindex 782e628c..3a11e72f 100644 --- a/tests/ref/text/deco.png +++ b/tests/ref/text/deco.png diff --git a/tests/typ/text/deco.typ b/tests/typ/text/deco.typ index dbf86a86..cc9b9b3a 100644 --- a/tests/typ/text/deco.typ +++ b/tests/typ/text/deco.typ @@ -59,6 +59,17 @@ We can also specify a customized value #highlight[abc #sym.integral] --- +// Test highlight radius +#highlight(radius: 3pt)[abc], +#highlight(radius: 1em)[#lorem(5)] + +--- +// Test highlight stroke +#highlight(stroke: 2pt + blue)[abc] +#highlight(stroke: (top: blue, left: red, bottom: green, right: orange))[abc] +#highlight(stroke: 1pt, radius: 3pt)[#lorem(5)] + +--- // Test underline background #set underline(background: true, stroke: (thickness: 0.5em, paint: red, cap: "round")) #underline[This is in the background] @@ -68,7 +79,6 @@ We can also specify a customized value #set overline(background: true, stroke: (thickness: 0.5em, paint: red, cap: "round")) #overline[This is in the background] - --- // Test strike background #set strike(background: true, stroke: 5pt + red) |
