Improved mono fallback

This commit is contained in:
Jeremy Soller 2022-10-19 13:18:23 -06:00
parent 0cbc3c3cfa
commit 8fa691b912
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
3 changed files with 23 additions and 5 deletions

View file

@ -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(),