mirror of
https://github.com/readest/readest.git
synced 2026-04-28 19:42:21 +00:00
fix: temporarily disable font name with style for windows (#1054)
This commit is contained in:
parent
8f0982ae33
commit
38101cb76d
1 changed files with 6 additions and 1 deletions
|
|
@ -53,7 +53,12 @@ impl<R: Runtime> NativeBridge<R> {
|
|||
let font_collection = font_enumeration::Collection::new().unwrap();
|
||||
let mut fonts = HashMap::new();
|
||||
for font in font_collection.all() {
|
||||
fonts.insert(font.font_name.clone(), font.family_name.clone());
|
||||
if cfg!(target_os = "windows") {
|
||||
// FIXME: temporarily disable font name with style for windows
|
||||
fonts.insert(font.family_name.clone(), font.family_name.clone());
|
||||
} else {
|
||||
fonts.insert(font.font_name.clone(), font.family_name.clone());
|
||||
}
|
||||
}
|
||||
Ok(GetSysFontsListResponse { fonts, error: None })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue