font: fontkit: add missing fallback in font locator
This commit is contained in:
1 parent
5891277d1f
commit
a05612960e
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user