diff --git a/crates/epaint/src/text/font.rs b/crates/epaint/src/text/font.rs index 50500de8482..410a73d2b62 100644 --- a/crates/epaint/src/text/font.rs +++ b/crates/epaint/src/text/font.rs @@ -141,7 +141,7 @@ impl FontImpl { fn ignore_character(&self, chr: char) -> bool { use crate::text::FontDefinitions; - if !FontDefinitions::builtin_font_names().contains(&self.name.as_str()) { + if !FontDefinitions::builtin_font_names().contains(&self.name) { return false; }