summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMax <me@mkor.je>2024-10-30 15:29:15 +0000
committerGitHub <noreply@github.com>2024-10-30 15:29:15 +0000
commitf85faf957ff6067e0b6f20a3d27388cc4549a330 (patch)
tree5ece60cc7ffce75a76d1653f6aef4ec189612c85 /tests
parent2634a8402cdbd2443edf27abeb4ee6bafb70f5bd (diff)
Add `math.accent` support for `flac` and `dtls` OpenType features (#5202)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math-accent-dotless.pngbin0 -> 1026 bytes
-rw-r--r--tests/ref/math-style-dotless.pngbin0 -> 660 bytes
-rw-r--r--tests/suite/math/accent.typ7
-rw-r--r--tests/suite/math/style.typ13
4 files changed, 20 insertions, 0 deletions
diff --git a/tests/ref/math-accent-dotless.png b/tests/ref/math-accent-dotless.png
new file mode 100644
index 00000000..81eb4fa2
--- /dev/null
+++ b/tests/ref/math-accent-dotless.png
Binary files differ
diff --git a/tests/ref/math-style-dotless.png b/tests/ref/math-style-dotless.png
new file mode 100644
index 00000000..6f4063c6
--- /dev/null
+++ b/tests/ref/math-style-dotless.png
Binary files differ
diff --git a/tests/suite/math/accent.typ b/tests/suite/math/accent.typ
index 87ed8158..5be4f576 100644
--- a/tests/suite/math/accent.typ
+++ b/tests/suite/math/accent.typ
@@ -35,3 +35,10 @@ $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))$
+
+--- math-accent-dotless ---
+// Test dotless glyph variants.
+#let test(c) = $grave(#c), acute(sans(#c)), hat(frak(#c)), tilde(mono(#c)),
+ 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)$
diff --git a/tests/suite/math/style.typ b/tests/suite/math/style.typ
index 09ddd3c1..e21cd4fd 100644
--- a/tests/suite/math/style.typ
+++ b/tests/suite/math/style.typ
@@ -12,6 +12,19 @@ $A, italic(A), upright(A), bold(A), bold(upright(A)), \
bb("hello") + bold(cal("world")), \
mono("SQRT")(x) wreath mono(123 + 456)$
+--- math-style-dotless ---
+// Test styling dotless i and j.
+$ dotless.i dotless.j,
+ upright(dotless.i) upright(dotless.j),
+ sans(dotless.i) sans(dotless.j),
+ bold(dotless.i) bold(dotless.j),
+ bb(dotless.i) bb(dotless.j),
+ cal(dotless.i) cal(dotless.j),
+ frak(dotless.i) frak(dotless.j),
+ mono(dotless.i) mono(dotless.j),
+ bold(frak(dotless.i)) upright(sans(dotless.j)),
+ italic(bb(dotless.i)) frak(sans(dotless.j)) $
+
--- math-style-exceptions ---
// Test a few style exceptions.
$h, bb(N), cal(R), Theta, italic(Theta), sans(Theta), sans(italic(Theta)) \