mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
Bug 1740258 - Check if we can open the font when we fail to load it. r=gfx-reviewers,bradwerth
This should help us understand what's going in bug 1737810. Differential Revision: https://phabricator.services.mozilla.com/D130744
This commit is contained in:
parent
5ee45fabf6
commit
66541b0163
@ -367,7 +367,11 @@ impl FontContext {
|
||||
if let Some(face) = new_ft_face(font_key, self.lib, &file, index) {
|
||||
self.faces.insert(*font_key, FontFace { file, index, face, mm_var: ptr::null_mut() });
|
||||
} else {
|
||||
panic!("adding native font failed: file={}", str);
|
||||
let file = std::fs::File::open(str);
|
||||
match file {
|
||||
Err(e) => panic!("adding native font failed: file={}, err={:?}", str, e),
|
||||
Ok(_) => panic!("adding native font failed but opened file={}", str)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user