mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
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.
|
/// Search everything that is available.
|
||||||
pub fn search(&mut self, font_paths: &[PathBuf]) {
|
pub fn search(&mut self, font_paths: &[PathBuf]) {
|
||||||
|
for path in font_paths {
|
||||||
|
self.search_dir(path)
|
||||||
|
}
|
||||||
|
|
||||||
self.search_system();
|
self.search_system();
|
||||||
|
|
||||||
#[cfg(feature = "embed-fonts")]
|
#[cfg(feature = "embed-fonts")]
|
||||||
self.add_embedded();
|
self.add_embedded();
|
||||||
|
|
||||||
for path in font_paths {
|
|
||||||
self.search_dir(path)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add fonts that are embedded in the binary.
|
/// Add fonts that are embedded in the binary.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user