Search additional font paths before system/embedded (#1847)
This commit is contained in:
parent
c5a103867d
commit
02d981ed1c
@ -68,14 +68,14 @@ impl FontSearcher {
|
||||
|
||||
/// Search everything that is available.
|
||||
pub fn search(&mut self, font_paths: &[PathBuf]) {
|
||||
for path in font_paths {
|
||||
self.search_dir(path)
|
||||
}
|
||||
|
||||
self.search_system();
|
||||
|
||||
#[cfg(feature = "embed-fonts")]
|
||||
self.add_embedded();
|
||||
|
||||
for path in font_paths {
|
||||
self.search_dir(path)
|
||||
}
|
||||
}
|
||||
|
||||
/// Add fonts that are embedded in the binary.
|
||||
|
Loading…
x
Reference in New Issue
Block a user