{"record":{"id":"d0ce2c0e79ff085c","repo":"zed-industries/zed","slug":"err-d0ce2c","errorCode":null,"errorMessage":"{err}","messagePattern":"\\{err\\}","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/gpui/src/text_system.rs","lineNumber":333,"sourceCode":"            .set_missing_glyph_sink(Some(self.missing_glyph_reporter.clone()));\n    }\n\n    pub(crate) fn disable_missing_glyph_reporting(&self) {\n        self.platform_text_system.set_missing_glyph_sink(None);\n        self.missing_glyph_reporter.reset();\n    }\n\n    #[cfg(test)]\n    pub(crate) fn report_missing_glyphs_in_test(&self, missing_glyphs: Vec<MissingGlyph>) {\n        self.missing_glyph_reporter.report(missing_glyphs);\n    }\n\n    /// Get the FontId for the configure font family and style.\n    fn font_id(&self, font: &Font) -> Result<FontId> {\n        fn clone_font_id_result(font_id: &Result<FontId>) -> Result<FontId> {\n            match font_id {\n                Ok(font_id) => Ok(*font_id),\n                Err(err) => Err(anyhow!(\"{err}\")),\n            }\n        }\n\n        let font_id = self\n            .font_ids_by_font\n            .read()\n            .get(font)\n            .map(clone_font_id_result);\n        if let Some(font_id) = font_id {\n            font_id\n        } else {\n            let font_id = self.platform_text_system.font_id(font);\n            self.font_ids_by_font\n                .write()\n                .insert(font.clone(), clone_font_id_result(&font_id));\n            font_id\n        }\n    }","sourceCodeStart":315,"sourceCodeEnd":351,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/gpui/src/text_system.rs#L315-L351","documentation":"Pass-through of the underlying platform text system error in TextSystem::font_id's helper clone_font_id_result: resolving the FontId for a requested Font failed (unknown family, unregistered font, or style lookup failure).","triggerScenarios":"Thrown at crates/gpui/src/text_system.rs:111 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that required fonts are registered via add_fonts before text layout","Verify the font family/style requested actually exists on the system","Inspect the embedded `err` (platform text system error) for the concrete cause","Fall back to a default font family if the requested one is unavailable"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}