font: fontkit: add missing fallback in font locator

This commit is contained in:
Wez Furlong committed 2019-12-09 08:06:02 -08:00
1 parent 5891277d1f
commit a05612960e
1 file changed
+1 -1
+1 -1
View File
@@ -124,7 +124,7 @@ impl FontKitFontSystem {
let sources = MultiSource::from_sources(vec![dir_source, system_source]);
let mut handles = vec![];
for font in &style.font {
for font in style.font_with_fallback() {
let mut props = Properties::new();
if font.bold {
props.weight(font_kit::properties::Weight::BOLD);