diff options
| author | Eric Biedert <github@ericbiedert.de> | 2024-10-07 10:23:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-07 08:23:32 +0000 |
| commit | 82a2c3619ad6884fc3a50baa787a6fdc288f13e7 (patch) | |
| tree | 801301ac612be2c2aadcf7ea0530c13e3a793325 | |
| parent | deb0308980b5928f9eee5dccbf3cd1e552eea90d (diff) | |
Add exception for NewCM Math Bold (#5126)
| -rw-r--r-- | crates/typst/src/text/font/exceptions.rs | 3 | ||||
| -rw-r--r-- | tests/ref/issue-3650-italic-equation.png | bin | 1497 -> 1546 bytes |
2 files changed, 3 insertions, 0 deletions
diff --git a/crates/typst/src/text/font/exceptions.rs b/crates/typst/src/text/font/exceptions.rs index 9234d76c..40998bb9 100644 --- a/crates/typst/src/text/font/exceptions.rs +++ b/crates/typst/src/text/font/exceptions.rs @@ -181,6 +181,9 @@ static EXCEPTION_MAP: phf::Map<&'static str, Exception> = phf::phf_map! { .family("New Computer Modern"), "NewCM10-Regular" => Exception::new() .family("New Computer Modern"), + "NewCMMath-Bold" => Exception::new() + .family("New Computer Modern Math") + .weight(700), "NewCMMath-Book" => Exception::new() .family("New Computer Modern Math") .weight(450), diff --git a/tests/ref/issue-3650-italic-equation.png b/tests/ref/issue-3650-italic-equation.png Binary files differindex 296d9d36..97036c78 100644 --- a/tests/ref/issue-3650-italic-equation.png +++ b/tests/ref/issue-3650-italic-equation.png |
