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