summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax <me@mkor.je>2024-11-26 12:36:53 +0000
committerGitHub <noreply@github.com>2024-11-26 12:36:53 +0000
commit6d35972c3d2caaea3d6e358f6af121ba37881dbb (patch)
treee8f31a822d52653807df9c76112286a44d1fe3f2
parent580e6811b0281f19fa9c3e438500a9e8bb9b95ef (diff)
Update NewCM fonts to version 7.0.0 (#5465)
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--crates/typst-library/src/text/font/exceptions.rs3
-rw-r--r--tests/ref/math-attach-descender-collision.pngbin739 -> 737 bytes
-rw-r--r--tests/ref/math-attach-horizontal-align.pngbin1898 -> 1899 bytes
-rw-r--r--tests/ref/math-attach-nested.pngbin979 -> 981 bytes
-rw-r--r--tests/ref/math-attach-postscripts.pngbin497 -> 496 bytes
-rw-r--r--tests/ref/math-equation-numbering.pngbin4684 -> 4699 bytes
-rw-r--r--tests/ref/math-style-greek-exceptions.pngbin301 -> 315 bytes
-rw-r--r--tests/ref/math-underover-line-subscript.pngbin1541 -> 1540 bytes
10 files changed, 3 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 78ab71c5..330dcce5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2677,7 +2677,7 @@ dependencies = [
[[package]]
name = "typst-assets"
version = "0.12.0"
-source = "git+https://github.com/typst/typst-assets?rev=5c0dcc0#5c0dcc062eddd9c1b1a8994fe4948ab604a1690f"
+source = "git+https://github.com/typst/typst-assets?rev=8cccef9#8cccef93b5da73a1c80389722cf2b655b624f577"
[[package]]
name = "typst-cli"
diff --git a/Cargo.toml b/Cargo.toml
index cebc2e97..1f6eb5ac 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,7 +31,7 @@ typst-svg = { path = "crates/typst-svg", version = "0.12.0" }
typst-syntax = { path = "crates/typst-syntax", version = "0.12.0" }
typst-timing = { path = "crates/typst-timing", version = "0.12.0" }
typst-utils = { path = "crates/typst-utils", version = "0.12.0" }
-typst-assets = { git = "https://github.com/typst/typst-assets", rev = "5c0dcc0" }
+typst-assets = { git = "https://github.com/typst/typst-assets", rev = "8cccef9" }
typst-dev-assets = { git = "https://github.com/typst/typst-dev-assets", rev = "b07d156" }
arrayvec = "0.7.4"
az = "1.2"
diff --git a/crates/typst-library/src/text/font/exceptions.rs b/crates/typst-library/src/text/font/exceptions.rs
index 6393df4b..465ec510 100644
--- a/crates/typst-library/src/text/font/exceptions.rs
+++ b/crates/typst-library/src/text/font/exceptions.rs
@@ -182,8 +182,7 @@ static EXCEPTION_MAP: phf::Map<&'static str, Exception> = phf::phf_map! {
"NewCM10-Regular" => Exception::new()
.family("New Computer Modern"),
"NewCMMath-Bold" => Exception::new()
- .family("New Computer Modern Math")
- .weight(700),
+ .family("New Computer Modern Math"),
"NewCMMath-Book" => Exception::new()
.family("New Computer Modern Math")
.weight(450),
diff --git a/tests/ref/math-attach-descender-collision.png b/tests/ref/math-attach-descender-collision.png
index 71654916..fdca5695 100644
--- a/tests/ref/math-attach-descender-collision.png
+++ b/tests/ref/math-attach-descender-collision.png
Binary files differ
diff --git a/tests/ref/math-attach-horizontal-align.png b/tests/ref/math-attach-horizontal-align.png
index 73f3d1e8..d781967b 100644
--- a/tests/ref/math-attach-horizontal-align.png
+++ b/tests/ref/math-attach-horizontal-align.png
Binary files differ
diff --git a/tests/ref/math-attach-nested.png b/tests/ref/math-attach-nested.png
index a62e62eb..31b796fa 100644
--- a/tests/ref/math-attach-nested.png
+++ b/tests/ref/math-attach-nested.png
Binary files differ
diff --git a/tests/ref/math-attach-postscripts.png b/tests/ref/math-attach-postscripts.png
index bd94e4bd..63097420 100644
--- a/tests/ref/math-attach-postscripts.png
+++ b/tests/ref/math-attach-postscripts.png
Binary files differ
diff --git a/tests/ref/math-equation-numbering.png b/tests/ref/math-equation-numbering.png
index 7e8757bd..b127a9a1 100644
--- a/tests/ref/math-equation-numbering.png
+++ b/tests/ref/math-equation-numbering.png
Binary files differ
diff --git a/tests/ref/math-style-greek-exceptions.png b/tests/ref/math-style-greek-exceptions.png
index 93ae6309..fd61e11d 100644
--- a/tests/ref/math-style-greek-exceptions.png
+++ b/tests/ref/math-style-greek-exceptions.png
Binary files differ
diff --git a/tests/ref/math-underover-line-subscript.png b/tests/ref/math-underover-line-subscript.png
index 9a4b886b..e7d8c26e 100644
--- a/tests/ref/math-underover-line-subscript.png
+++ b/tests/ref/math-underover-line-subscript.png
Binary files differ