1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(thiserror::Error, Debug)]
pub enum PbfFontError {
    #[error("Sub-process error: {0}")]
    JoinError(#[from] tokio::task::JoinError),
    #[error("Protobuf decoding error: {0}")]
    ProtobufError(#[from] protobuf::Error),
    #[cfg(feature = "freetype")]
    #[error("SDF glyph error: {0}")]
    SdfGlyphError(#[from] sdf_glyph_renderer::SdfGlyphError),
    #[error("Font family name is not set")]
    MissingFontFamilyName,
    #[cfg(feature = "freetype")]
    #[error("Freetype error: {0}")]
    FreetypeError(#[from] crate::freetype::Error),
}