diff options
| author | Eric Biedert <github@ericbiedert.de> | 2024-10-07 10:23:32 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-10-15 15:06:36 +0200 |
| commit | af1de139428f10aa5538e38eb51bddbbae3e721b (patch) | |
| tree | e9526d65db5b9c7746bc03f6406f1f6093f5f82a | |
| parent | 09d3eab688d4100df2bb7484a682c48d82d250ff (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 |
