Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default font setting when different language #5

Open
willser opened this issue Apr 30, 2022 · 0 comments
Open

Default font setting when different language #5

willser opened this issue Apr 30, 2022 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@willser
Copy link
Owner

willser commented Apr 30, 2022

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.

@willser willser added help wanted Extra attention is needed good first issue Good for newcomers labels Apr 30, 2022
@willser willser pinned this issue Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant