iced-rs/iced · error
Read font system
Error message
Read font system
What it means
Error "Read font system" thrown in iced-rs/iced.
Source
Thrown at graphics/src/text/paragraph.rs:228
let mut font_system = text::font_system().write().expect("Write font system");
paragraph.buffer.set_size(
Some(new_bounds.width * paragraph.hint_factor),
Some(new_bounds.height * paragraph.hint_factor),
);
paragraph
.buffer
.shape_until_scroll(font_system.raw(), false);
let min_bounds = text::align(&mut paragraph.buffer, font_system.raw(), paragraph.align_x)
/ paragraph.hint_factor;
paragraph.bounds = new_bounds;
paragraph.min_bounds = min_bounds;
}
fn compare(&self, text: Text<()>) -> core::text::Difference {
let font_system = text::font_system().read().expect("Read font system");
let paragraph = self.internal();
let metrics = paragraph.buffer.metrics();
if paragraph.version != font_system.version
|| metrics.font_size != text.size.0 * paragraph.hint_factor
|| metrics.line_height
!= text.line_height.to_absolute(text.size).0 * paragraph.hint_factor
|| paragraph.font != text.font
|| paragraph.shaping != text.shaping
|| paragraph.wrapping != text.wrapping
|| paragraph.ellipsis != text.ellipsis
|| paragraph.align_x != text.align_x
|| paragraph.align_y != text.align_y
|| paragraph.hint.then_some(paragraph.hint_factor)
!= text::hint_factor(text.size, text.hint_factor)
{
core::text::Difference::Shape
} else if paragraph.bounds != text.bounds {View on GitHub (pinned to 2cffa99b39)
When it happens
Trigger: Thrown at graphics/src/text/paragraph.rs:228 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of iced-rs/iced@2cffa99b39 (2026-08-16).
Data as JSON: /api/errors/9e74aab4355d5ebc.
Report an issue: GitHub.