Improved mono fallback
This commit is contained in:
parent
0cbc3c3cfa
commit
8fa691b912
3 changed files with 23 additions and 5 deletions
|
|
@ -127,7 +127,12 @@ impl<'a> FontMatches<'a> {
|
|||
);
|
||||
|
||||
//TODO: configure default family
|
||||
let mut font_iter = FontFallbackIter::new(&self.fonts, Some("Fira Sans"), scripts, &self.locale);
|
||||
let mut font_iter = FontFallbackIter::new(
|
||||
&self.fonts,
|
||||
&["Fira Sans", "Fira Mono"],
|
||||
scripts,
|
||||
&self.locale
|
||||
);
|
||||
|
||||
let (mut glyphs, mut missing) = self.shape_fallback(
|
||||
font_iter.next().unwrap(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue