Respect fontconfig font aliases when enabled
This commit is contained in:
parent
33706262f6
commit
9d1d5a54c6
1 changed files with 2 additions and 1 deletions
|
|
@ -58,13 +58,14 @@ impl FontSystem {
|
|||
log::debug!("Locale: {}", locale);
|
||||
|
||||
let mut db = fontdb::Database::new();
|
||||
Self::load_fonts(&mut db, fonts.into_iter());
|
||||
|
||||
//TODO: configurable default fonts
|
||||
db.set_monospace_family("Fira Mono");
|
||||
db.set_sans_serif_family("Fira Sans");
|
||||
db.set_serif_family("DejaVu Serif");
|
||||
|
||||
Self::load_fonts(&mut db, fonts.into_iter());
|
||||
|
||||
Self::new_with_locale_and_db(locale, db)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue