diff options
| author | Luke Chambers <consolelogluke@gmail.com> | 2023-08-03 07:55:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-03 13:55:00 +0200 |
| commit | 02d981ed1ce90f04b34272f6960f84a9917c4ae2 (patch) | |
| tree | f84693a6d3d3faf8315a9b678447ad4559380310 /crates/typst-cli | |
| parent | c5a103867d78e61f8d9c4859eb8e668accc4cbd0 (diff) | |
Search additional font paths before system/embedded (#1847)
Diffstat (limited to 'crates/typst-cli')
| -rw-r--r-- | crates/typst-cli/src/fonts.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/typst-cli/src/fonts.rs b/crates/typst-cli/src/fonts.rs index d8209fee..1b4757c8 100644 --- a/crates/typst-cli/src/fonts.rs +++ b/crates/typst-cli/src/fonts.rs @@ -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. |
