Skip to content

Commit f3ba8ec

Browse files
committed
Load fonts prior to setting defaults
1 parent 1f97cbd commit f3ba8ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/font/system.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ impl FontSystem {
143143

144144
let mut db = fontdb::Database::new();
145145

146+
Self::load_fonts(&mut db, fonts.into_iter());
147+
146148
//TODO: configurable default fonts
147149
db.set_monospace_family("Fira Mono");
148150
db.set_sans_serif_family("Fira Sans");
149151
db.set_serif_family("DejaVu Serif");
150152

151-
Self::load_fonts(&mut db, fonts.into_iter());
152-
153153
Self::new_with_locale_and_db(locale, db)
154154
}
155155

0 commit comments

Comments
 (0)