summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-24 13:59:32 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-24 13:59:32 +0100
commit6547c2d6d5b25f44e52ac56698ed08ff6a5dbb3a (patch)
treeb35cad27220050063e933e2750dd31f848d873f0 /src
parentaffb3534538385056cfb60328f6dba6bd852229a (diff)
Handle New CM Math Book
Diffstat (limited to 'src')
-rw-r--r--src/font/book.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/font/book.rs b/src/font/book.rs
index ec878ede..7e43033e 100644
--- a/src/font/book.rs
+++ b/src/font/book.rs
@@ -199,7 +199,7 @@ impl FontInfo {
// up.
let family = {
let mut family = find_name(ttf, name_id::FAMILY)?;
- if family.starts_with("Noto") {
+ if family.starts_with("Noto") || family.starts_with("NewComputerModern") {
family = find_name(ttf, name_id::FULL_NAME)?;
}
typographic_family(&family).to_string()
@@ -353,6 +353,7 @@ fn typographic_family(mut family: &str) -> &str {
// Fix bad names.
match &family[..len] {
"NewComputerModernMath" => "New Computer Modern Math",
+ "NewComputerModernMath-Book" => "New Computer Modern Math Book",
other => other,
}
}