{"record":{"id":"cff36b1a9345d3f5","repo":"iced-rs/iced","slug":"write-font-system-cff36b","errorCode":null,"errorMessage":"Write font system","messagePattern":"Write font system","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"graphics/src/text/paragraph.rs","lineNumber":69,"sourceCode":"            raw: Arc::downgrade(paragraph),\n            min_bounds: paragraph.min_bounds,\n            align_x: paragraph.align_x,\n            align_y: paragraph.align_y,\n        }\n    }\n\n    fn internal(&self) -> &Arc<Internal> {\n        &self.0\n    }\n}\n\nimpl core::text::Paragraph for Paragraph {\n    type Font = Font;\n\n    fn with_text(text: Text<&str>) -> Self {\n        log::trace!(\"Allocating plain paragraph: {}\", text.content);\n\n        let mut font_system = text::font_system().write().expect(\"Write font system\");\n\n        let (hint, hint_factor) = match text::hint_factor(text.size, text.hint_factor) {\n            Some(hint_factor) => (true, hint_factor),\n            _ => (false, 1.0),\n        };\n\n        let mut buffer = cosmic_text::Buffer::new(\n            font_system.raw(),\n            cosmic_text::Metrics::new(\n                f32::from(text.size) * hint_factor,\n                f32::from(text.line_height.to_absolute(text.size)) * hint_factor,\n            ),\n        );\n\n        if hint {\n            buffer.set_hinting(cosmic_text::Hinting::Enabled);\n        }\n","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/iced-rs/iced/blob/2cffa99b395d84fe469b44dccb56bbacd2f1a157/graphics/src/text/paragraph.rs#L51-L87","documentation":"Error \"Write font system\" thrown in iced-rs/iced.","triggerScenarios":"Thrown at graphics/src/text/paragraph.rs:69 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":"2cffa99b395d84fe469b44dccb56bbacd2f1a157","analyzedAt":"2026-08-16T19:41:49.083Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}