Skip to content

Commit

Permalink
Add workaround for Hani not matching anything.
Browse files Browse the repository at this point in the history
  • Loading branch information
xorgy committed Apr 13, 2024
1 parent 85da210 commit ed5afbb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/fontique/backend/android.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ impl SystemFonts {
if let Some(scr) = locale.script {
script_fallback
.push((scr.as_str().into(), *family));
if "Hant" == scr.as_str() {
// This works around ambiguous han char­
// acters going unmapped with current
// fallback code. This should be done in
// a locale-dependent manner, since that
// is the norm.
script_fallback
.push(("Hani".into(), *family));
}
}
locale_fallback.push((locale, *family));
}
Expand Down

0 comments on commit ed5afbb

Please sign in to comment.