diff options
| author | Eric Biedert <github@ericbiedert.de> | 2024-10-10 14:03:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-10 12:03:11 +0000 |
| commit | f1f2de889a2d7a7533453956595acb82ab1da125 (patch) | |
| tree | 7646eef38ccdcf22c032b880403ac75f157a8a05 /tests | |
| parent | 6257e4d6cf060f367c3f2eb2d005a091b6432e88 (diff) | |
Resolve lengths in math with scaled font size (#5168)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/math-accent-sized-script.png | bin | 0 -> 331 bytes | |||
| -rw-r--r-- | tests/ref/math-spacing-script.png | bin | 0 -> 346 bytes | |||
| -rw-r--r-- | tests/suite/math/accent.typ | 4 | ||||
| -rw-r--r-- | tests/suite/math/spacing.typ | 4 |
4 files changed, 8 insertions, 0 deletions
diff --git a/tests/ref/math-accent-sized-script.png b/tests/ref/math-accent-sized-script.png Binary files differnew file mode 100644 index 00000000..cf468dd1 --- /dev/null +++ b/tests/ref/math-accent-sized-script.png diff --git a/tests/ref/math-spacing-script.png b/tests/ref/math-spacing-script.png Binary files differnew file mode 100644 index 00000000..3ded9622 --- /dev/null +++ b/tests/ref/math-spacing-script.png diff --git a/tests/suite/math/accent.typ b/tests/suite/math/accent.typ index 9f57d69b..87ed8158 100644 --- a/tests/suite/math/accent.typ +++ b/tests/suite/math/accent.typ @@ -31,3 +31,7 @@ $ tilde(integral), tilde(integral)_a^b, tilde(integral_a^b) $ --- math-accent-sized --- // Test accent size. $tilde(sum), tilde(sum, size: #50%), accent(H, hat, size: #200%)$ + +--- math-accent-sized-script --- +// Test accent size in script size. +$tilde(U, size: #1.1em), x^tilde(U, size: #1.1em), sscript(tilde(U, size: #1.1em))$ diff --git a/tests/suite/math/spacing.typ b/tests/suite/math/spacing.typ index 707c09bb..db8b905c 100644 --- a/tests/suite/math/spacing.typ +++ b/tests/suite/math/spacing.typ @@ -49,6 +49,10 @@ $integral f(x) thin dif x$, // Both are weak, collide $integral f(x) #h(0.166em, weak: true)dif x$ +--- math-spacing-script --- +// Test spacing in script size +$x^(a #h(1em) b) + x^x^(a #h(1em) b) + sscript(a #h(1em) b)$ + --- math-spacing-ignorant --- // Test spacing with ignorant elements $#metadata(none) "text"$ \ |
