Text: embedded Noto Sans JP backs up Japanese runs (#2375)

This commit is contained in:
Madhav Agarwal committed 2026-11-15 14:02:39 +05:30
1 parent bad07e4433
commit 8133b31c74
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -555,7 +555,7 @@ fn names(f: &skrifa::FontRef) -> (Option<String>, Option<String>) {
/// document: the browser has no other fonts. The symbol fonts come last: Apple Symbols (macOS),
/// Segoe UI Symbol (Windows) and the Noto symbol and math fonts (Linux), for signs such as ⌖ and ⤒
/// that no text face has.
const FALLBACK_FAMILIES: [&str; 32] = [
const FALLBACK_FAMILIES: [&str; 33] = [
"Inter",
"Helvetica Neue",
"Arial",
@@ -563,6 +563,7 @@ const FALLBACK_FAMILIES: [&str; 32] = [
"DejaVu Sans",
"Noto Sans",
"BIZ UDPGothic",
"Noto Sans JP",
"Hiragino Sans",
"PingFang SC",
"Hiragino Sans GB",
+1
View File
@@ -604,6 +604,7 @@ fn every_embeddable_script_face_is_a_document_fallback() {
"Noto Sans Hebrew",
"Noto Sans Devanagari",
"Noto Sans Georgian",
"Noto Sans JP",
"Noto Sans Symbols",
"Noto Sans Symbols 2",
] {