Skip to content

Commit 4a6c388

Browse files
authored
Merge pull request pop-os#187 from hecrj/respect-fontconfig-aliases
Respect `fontconfig` font aliases when enabled
2 parents 3370626 + 9d1d5a5 commit 4a6c388

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/font/system.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ impl FontSystem {
5858
log::debug!("Locale: {}", locale);
5959

6060
let mut db = fontdb::Database::new();
61-
Self::load_fonts(&mut db, fonts.into_iter());
6261

6362
//TODO: configurable default fonts
6463
db.set_monospace_family("Fira Mono");
6564
db.set_sans_serif_family("Fira Sans");
6665
db.set_serif_family("DejaVu Serif");
6766

67+
Self::load_fonts(&mut db, fonts.into_iter());
68+
6869
Self::new_with_locale_and_db(locale, db)
6970
}
7071

0 commit comments

Comments
 (0)