From f29fbea2fcabed9ed6fc3c19d585edc6fe45370b Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 27 Nov 2024 11:11:49 +0000 Subject: Use extended shape information for glyph `text_like`-ness (#5483) --- tests/ref/math-attach-scripts-extended-shapes.png | Bin 0 -> 1057 bytes tests/ref/math-lr-scripts.png | Bin 0 -> 611 bytes tests/ref/math-stretch-vertical-scripts.png | Bin 0 -> 379 bytes tests/suite/math/attach.typ | 6 ++++++ tests/suite/math/delimited.typ | 6 ++++++ tests/suite/math/stretch.typ | 6 ++++++ 6 files changed, 18 insertions(+) create mode 100644 tests/ref/math-attach-scripts-extended-shapes.png create mode 100644 tests/ref/math-lr-scripts.png create mode 100644 tests/ref/math-stretch-vertical-scripts.png (limited to 'tests') diff --git a/tests/ref/math-attach-scripts-extended-shapes.png b/tests/ref/math-attach-scripts-extended-shapes.png new file mode 100644 index 00000000..c99d3c7f Binary files /dev/null and b/tests/ref/math-attach-scripts-extended-shapes.png differ diff --git a/tests/ref/math-lr-scripts.png b/tests/ref/math-lr-scripts.png new file mode 100644 index 00000000..7ce35475 Binary files /dev/null and b/tests/ref/math-lr-scripts.png differ diff --git a/tests/ref/math-stretch-vertical-scripts.png b/tests/ref/math-stretch-vertical-scripts.png new file mode 100644 index 00000000..ce933c3c Binary files /dev/null and b/tests/ref/math-stretch-vertical-scripts.png differ diff --git a/tests/suite/math/attach.typ b/tests/suite/math/attach.typ index 9c92c62e..56fa47c5 100644 --- a/tests/suite/math/attach.typ +++ b/tests/suite/math/attach.typ @@ -170,3 +170,9 @@ $ attach(a^b, b: c) quad $ a0 + a1 + a0_2 \ a1_2 + a0^2 + a1^2 $ + +--- math-attach-scripts-extended-shapes --- +// Test script attachments positioning if the base is an extended shape (or a +// sequence of extended shapes). +$lr(size: #130%, [x])_0^1, [x]_0^1, \]_0^1, x_0^1, A_0^1$ \ +$n^2, (n + 1)^2, sum_0^1, integral_0^1$ diff --git a/tests/suite/math/delimited.typ b/tests/suite/math/delimited.typ index 9e11ec8b..fc00333d 100644 --- a/tests/suite/math/delimited.typ +++ b/tests/suite/math/delimited.typ @@ -115,6 +115,12 @@ $lr(body2, size: #50%)$ $ (1 / 2) $ }) +--- math-lr-scripts --- +// Test interactions with script attachments. +$ lr(size: #3em, |)_a^b lr(size: #3em, zws|)_a^b + lr(size: #3em, [x])_0^1 [x]_0^1 + lr(size: #1em, lr(size: #10em, [x]))_0^1 $ + --- issue-4188-lr-corner-brackets --- // Test positioning of U+231C to U+231F $⌜a⌟⌞b⌝$ = $⌜$$a$$⌟$$⌞$$b$$⌝$ diff --git a/tests/suite/math/stretch.typ b/tests/suite/math/stretch.typ index 60696746..6bf13e25 100644 --- a/tests/suite/math/stretch.typ +++ b/tests/suite/math/stretch.typ @@ -35,6 +35,12 @@ $stretch(arrow.t)^"map"$ $stretch(arrow.t, size: #2em)^"map"$ $stretch(arrow.t, size: #200%)^"map"$ +--- math-stretch-vertical-scripts --- +// Test vertical stretch interactions with script attachments. +#let big = $stretch(|, size: #4em)$ +$ big_0^1 stretch(|, size: #1.5em)_0^1 + stretch(big, size: #1em)_0^1 |_0^1 $ + --- math-stretch-horizontal --- // Test stretching along horizontal axis. #let ext(sym) = math.stretch(sym, size: 2em) -- cgit v1.2.3