summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMax <me@mkor.je>2025-03-31 09:17:49 +0000
committerGitHub <noreply@github.com>2025-03-31 09:17:49 +0000
commit4f0fbfb7e003f6ae88c1b210fdb7b38f795fc9e4 (patch)
treec1d88be2187d6ab1566177623842cdf4b39a722f /tests
parenta64af130dc84c84442d59f322b705bded28201de (diff)
Add dotless parameter to `math.accent` (#5939)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math-accent-dotless-disabled.pngbin0 -> 311 bytes
-rw-r--r--tests/ref/math-accent-dotless-set-rule.pngbin0 -> 147 bytes
-rw-r--r--tests/suite/math/accent.typ8
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/ref/math-accent-dotless-disabled.png b/tests/ref/math-accent-dotless-disabled.png
new file mode 100644
index 00000000..d75ec458
--- /dev/null
+++ b/tests/ref/math-accent-dotless-disabled.png
Binary files differ
diff --git a/tests/ref/math-accent-dotless-set-rule.png b/tests/ref/math-accent-dotless-set-rule.png
new file mode 100644
index 00000000..ae5ef017
--- /dev/null
+++ b/tests/ref/math-accent-dotless-set-rule.png
Binary files differ
diff --git a/tests/suite/math/accent.typ b/tests/suite/math/accent.typ
index 5be4f576..ab0078a5 100644
--- a/tests/suite/math/accent.typ
+++ b/tests/suite/math/accent.typ
@@ -42,3 +42,11 @@ $tilde(U, size: #1.1em), x^tilde(U, size: #1.1em), sscript(tilde(U, size: #1.1em
macron(bb(#c)), dot(cal(#c)), diaer(upright(#c)), breve(bold(#c)),
circle(bold(upright(#c))), caron(upright(sans(#c))), arrow(bold(frak(#c)))$
$test(i) \ test(j)$
+
+--- math-accent-dotless-disabled ---
+// Test disabling the dotless glyph variants.
+$hat(i), hat(i, dotless: #false), accent(j, tilde), accent(j, tilde, dotless: #false)$
+
+--- math-accent-dotless-set-rule ---
+#set math.accent(dotless: false)
+$ hat(i) $