From f85faf957ff6067e0b6f20a3d27388cc4549a330 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 30 Oct 2024 15:29:15 +0000 Subject: Add `math.accent` support for `flac` and `dtls` OpenType features (#5202) --- tests/ref/math-accent-dotless.png | Bin 0 -> 1026 bytes tests/ref/math-style-dotless.png | Bin 0 -> 660 bytes tests/suite/math/accent.typ | 7 +++++++ tests/suite/math/style.typ | 13 +++++++++++++ 4 files changed, 20 insertions(+) create mode 100644 tests/ref/math-accent-dotless.png create mode 100644 tests/ref/math-style-dotless.png (limited to 'tests') diff --git a/tests/ref/math-accent-dotless.png b/tests/ref/math-accent-dotless.png new file mode 100644 index 00000000..81eb4fa2 Binary files /dev/null and b/tests/ref/math-accent-dotless.png differ diff --git a/tests/ref/math-style-dotless.png b/tests/ref/math-style-dotless.png new file mode 100644 index 00000000..6f4063c6 Binary files /dev/null and b/tests/ref/math-style-dotless.png 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)) \ -- cgit v1.2.3