libcosmic-yoda/examples/text/src/font/fallback/windows.rs

20 lines
509 B
Rust
Raw Normal View History

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?
]
}
// 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
&[]
}