summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Biedert <github@ericbiedert.de>2024-10-07 10:23:32 +0200
committerGitHub <noreply@github.com>2024-10-07 08:23:32 +0000
commit82a2c3619ad6884fc3a50baa787a6fdc288f13e7 (patch)
tree801301ac612be2c2aadcf7ea0530c13e3a793325
parentdeb0308980b5928f9eee5dccbf3cd1e552eea90d (diff)
Add exception for NewCM Math Bold (#5126)
-rw-r--r--crates/typst/src/text/font/exceptions.rs3
-rw-r--r--tests/ref/issue-3650-italic-equation.pngbin1497 -> 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
index 296d9d36..97036c78 100644
--- a/tests/ref/issue-3650-italic-equation.png
+++ b/tests/ref/issue-3650-italic-equation.png
Binary files differ