summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2024-07-14 11:53:32 +0200
committerGitHub <noreply@github.com>2024-07-14 09:53:32 +0000
commit5c71ad7fe733664d5dcec1a36dcbf205b203d86c (patch)
tree2c98a9f004003e6e19369726cc60bbdea70928f5 /crates
parentab5cebc57c8345f397c3f0a1ed0c024dc6811e2f (diff)
Do not conflate Archivo Narrow and Archivo (Black) fonts (#4478)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/text/font/exceptions.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/typst/src/text/font/exceptions.rs b/crates/typst/src/text/font/exceptions.rs
index 2e5e3eda..642b6ea7 100644
--- a/crates/typst/src/text/font/exceptions.rs
+++ b/crates/typst/src/text/font/exceptions.rs
@@ -48,6 +48,16 @@ static EXCEPTION_MAP: phf::Map<&'static str, Exception> = phf::phf_map! {
// See https://corefonts.sourceforge.net/.
"Arial-Black" => Exception::new()
.weight(900),
+ // Archivo Narrow is different from Archivo and Archivo Black. Since Archivo Black seems
+ // identical to Archivo weight 900, only differentiate between Archivo and Archivo Narrow.
+ "ArchivoNarrow-Regular" => Exception::new()
+ .family("Archivo Narrow"),
+ "ArchivoNarrow-Italic" => Exception::new()
+ .family("Archivo Narrow"),
+ "ArchivoNarrow-Bold" => Exception::new()
+ .family("Archivo Narrow"),
+ "ArchivoNarrow-BoldItalic" => Exception::new()
+ .family("Archivo Narrow"),
// Fandol fonts designed for Chinese typesetting.
// See https://ctan.org/tex-archive/fonts/fandol/.
"FandolHei-Bold" => Exception::new()