Add some windows common fallbacks

This commit is contained in:
Jeremy Soller 2022-10-13 13:38:06 -06:00
parent 8c3b37474f
commit 51e3ef6627
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE

View file

@ -2,10 +2,18 @@ use unicode_script::Script;
// Fallbacks to use after any script specific fallbacks
pub fn common_fallback() -> &'static [&'static str] {
&[]
//TODO: abstract style (sans/serif/monospaced)
&[
"Segoe UI",
"FreeSans",
"Segoe UI Symbol",
"Segoe UI Emoji",
//TODO: Add CJK script here for doublewides?
]
}
// Fallbacks to use per script
pub fn script_fallback(script: &Script, locale: &str) -> &'static [&'static str] {
//TODO: per-script fallbacks
&[]
}