diff --git a/src/fonts.rs b/src/fonts.rs index 1c139b8..51719f2 100644 --- a/src/fonts.rs +++ b/src/fonts.rs @@ -17,7 +17,9 @@ pub fn init(font_dirs: &[String], font_family: &str) -> Option<(fontdb::Database } else { for name in ["DejaVu Sans", "Noto Emoji"] { if let Some(name) = find_font_family(&font_db, name) { - families.push(name); + if !families.contains(&name) { + families.push(name); + } } }