Skip to content

Default font setting when different language  #5

@willser

Description

@willser

For now.There are only one seeting about font family.It's zh-CN.

weaver/src/setting.rs

Lines 153 to 163 in 9e097f3

pub fn get_default_font() -> String {
if let Some((_, lang)) = locale_config::Locale::current().tags().next() {
let lang_str = lang.to_string();
match lang_str.as_str() {
"zh-CN" => {
return "Microsoft YaHei UI".to_string();
}
_ => {}
}
}
"".to_string()

It's very helpful if add more language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions