zed-industries/zed · error
{err}
Error message
{err} What it means
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).
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
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at crates/gpui/src/text_system.rs:111 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/d0ce2c0e79ff085c.
Report an issue: GitHub.
Appendix: source
Thrown at crates/gpui/src/text_system.rs:333
.set_missing_glyph_sink(Some(self.missing_glyph_reporter.clone()));
}
pub(crate) fn disable_missing_glyph_reporting(&self) {
self.platform_text_system.set_missing_glyph_sink(None);
self.missing_glyph_reporter.reset();
}
#[cfg(test)]
pub(crate) fn report_missing_glyphs_in_test(&self, missing_glyphs: Vec<MissingGlyph>) {
self.missing_glyph_reporter.report(missing_glyphs);
}
/// Get the FontId for the configure font family and style.
fn font_id(&self, font: &Font) -> Result<FontId> {
fn clone_font_id_result(font_id: &Result<FontId>) -> Result<FontId> {
match font_id {
Ok(font_id) => Ok(*font_id),
Err(err) => Err(anyhow!("{err}")),
}
}
let font_id = self
.font_ids_by_font
.read()
.get(font)
.map(clone_font_id_result);
if let Some(font_id) = font_id {
font_id
} else {
let font_id = self.platform_text_system.font_id(font);
self.font_ids_by_font
.write()
.insert(font.clone(), clone_font_id_result(&font_id));
font_id
}
}View on GitHub (pinned to 916fc2b8cb)