mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Continue loading font-face sources on missing local font
This commit is contained in:
parent
110fd68610
commit
74a4d76bb1
1 changed files with 8 additions and 1 deletions
|
@ -268,10 +268,17 @@ impl FontCache {
|
|||
Source::Local(ref font) => {
|
||||
let font_face_name = LowercaseString::new(font.name());
|
||||
let templates = &mut self.web_families.get_mut(&family_name).unwrap();
|
||||
let mut found = false;
|
||||
for_each_variation(&font_face_name, |path| {
|
||||
found = true;
|
||||
templates.add_template(Atom::from(&*path), None);
|
||||
});
|
||||
if found {
|
||||
sender.send(()).unwrap();
|
||||
} else {
|
||||
let msg = Command::AddWebFont(family_name, sources, sender);
|
||||
self.channel_to_self.send(msg).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue