Fix metrics of fandol fonts (#3554)

This commit is contained in:
Myriad-Dreamin 2024-03-06 01:43:57 +08:00 committed by GitHub
parent 824859108b
commit 5b2ffd9dd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,6 +48,12 @@ static EXCEPTION_MAP: phf::Map<&'static str, Exception> = phf::phf_map! {
// See https://corefonts.sourceforge.net/.
"Arial-Black" => Exception::new()
.weight(900),
// Fandol fonts designed for Chinese typesetting.
// See https://ctan.org/tex-archive/fonts/fandol/.
"FandolHei-Bold" => Exception::new()
.weight(700),
"FandolSong-Bold" => Exception::new()
.weight(700),
// Noto fonts
"NotoNaskhArabicUISemi-Bold" => Exception::new()
.family("Noto Naskh Arabic UI")