{"record":{"id":"61c94677d8209bd8","repo":"emilk/egui","slug":"nonexistent-font-id-61c946","errorCode":null,"errorMessage":"Nonexistent font ID","messagePattern":"Nonexistent font ID","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/epaint/src/text/fonts.rs","lineNumber":687,"sourceCode":"                (FontFaceKey::INVALID, PRIMARY_REPLACEMENT_CHAR)\n            });\n        slf.replacement_face_key = replacement_face_key;\n        slf.replacement_char = replacement_char;\n\n        slf\n    }\n\n    /// Walk the fallback chain and return the first face whose charmap supports `c`.\n    ///\n    /// Pure — does not touch any cache. Callers that want memoisation should\n    /// insert into [`Self::face_cache`] themselves.\n    pub(crate) fn find_face_for_char(\n        &self,\n        c: char,\n        fonts_by_id: &mut nohash_hasher::IntMap<FontFaceKey, FontFace>,\n    ) -> Option<FontFaceKey> {\n        for font_key in &self.fonts {\n            let font_face = fonts_by_id.get_mut(font_key).expect(\"Nonexistent font ID\");\n            if font_face.glyph_id_resolution(c).is_some() {\n                return Some(*font_key);\n            }\n        }\n        None\n    }\n}\n\n// ----------------------------------------------------------------------------\n\n/// The collection of fonts used by `epaint`.\n///\n/// Required in order to paint text. Create one and reuse. Cheap to clone.\n///\n/// Each [`Fonts`] comes with a font atlas textures that needs to be used when painting.\n///\n/// If you are using `egui`, use `egui::Context::set_fonts` and `egui::Context::fonts`.\n///","sourceCodeStart":669,"sourceCodeEnd":705,"githubUrl":"https://github.com/emilk/egui/blob/d802a982ce959839d92f4f6718fdffa41143110e/crates/epaint/src/text/fonts.rs#L669-L705","documentation":"Error \"Nonexistent font ID\" thrown in emilk/egui.","triggerScenarios":"Thrown at crates/epaint/src/text/fonts.rs:687 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d802a982ce959839d92f4f6718fdffa41143110e","analyzedAt":"2026-08-16T20:07:53.954Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}