use cosmic_text::CacheKey;1use thiserror::Error;23#[derive(Debug, PartialEq, Eq, Error)]4/// Errors related to the textsystem5pub enum TextError {6/// Font was not found, this could be that the font has not yet been loaded, or7/// that the font failed to load for some other reason8#[error("font not found")]9NoSuchFont,10/// Failed to add glyph to a newly created atlas for some reason11#[error("failed to add glyph to newly-created atlas {0:?}")]12FailedToAddGlyph(u16),13/// Failed to get scaled glyph image for cache key14#[error("failed to get scaled glyph image for cache key: {0:?}")]15FailedToGetGlyphImage(CacheKey),16}171819