From af1de139428f10aa5538e38eb51bddbbae3e721b Mon Sep 17 00:00:00 2001 From: Eric Biedert Date: Mon, 7 Oct 2024 10:23:32 +0200 Subject: Add exception for NewCM Math Bold (#5126) --- crates/typst/src/text/font/exceptions.rs | 3 +++ tests/ref/issue-3650-italic-equation.png | Bin 1497 -> 1546 bytes 2 files changed, 3 insertions(+) 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 index 296d9d36..97036c78 100644 Binary files a/tests/ref/issue-3650-italic-equation.png and b/tests/ref/issue-3650-italic-equation.png differ -- cgit v1.2.3