Add some Windows script definitions
This commit is contained in:
parent
14abe468b8
commit
f9985f8cae
1 changed files with 12 additions and 4 deletions
|
|
@ -5,15 +5,23 @@ pub fn common_fallback() -> &'static [&'static str] {
|
||||||
//TODO: abstract style (sans/serif/monospaced)
|
//TODO: abstract style (sans/serif/monospaced)
|
||||||
&[
|
&[
|
||||||
"Segoe UI",
|
"Segoe UI",
|
||||||
"FreeSans",
|
|
||||||
"Segoe UI Symbol",
|
|
||||||
"Segoe UI Emoji",
|
"Segoe UI Emoji",
|
||||||
|
"Segoe UI Symbol",
|
||||||
|
"Segoe UI Historic",
|
||||||
//TODO: Add CJK script here for doublewides?
|
//TODO: Add CJK script here for doublewides?
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallbacks to use per script
|
// Fallbacks to use per script
|
||||||
pub fn script_fallback(script: &Script, locale: &str) -> &'static [&'static str] {
|
pub fn script_fallback(script: &Script, locale: &str) -> &'static [&'static str] {
|
||||||
//TODO: per-script fallbacks
|
match script {
|
||||||
&[]
|
Script::Bengali => &["Nirmala UI"],
|
||||||
|
Script::Devanagari => &["Nirmala UI"],
|
||||||
|
Script::Gujarati => &["Nirmala UI"],
|
||||||
|
Script::Gurmukhi => &["Nirmala UI"],
|
||||||
|
Script::Tamil => &["Nirmala UI"],
|
||||||
|
Script::Telugu => &["Nirmala UI"],
|
||||||
|
Script::Thaana => &["MV Boli"],
|
||||||
|
_ => &[],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue