hb_subset/
error.rs

1use thiserror::Error;
2
3/// An error returned when an allocation fails.
4#[derive(Debug, Error)]
5#[error("Failed to allocate object")]
6pub struct AllocationError;
7
8/// An error returned when font face could not be subset.
9#[derive(Debug, Error)]
10#[error("Failed to subset font face")]
11pub struct SubsettingError;
12
13/// An error returned when a font face could not be extracted from blob.
14#[derive(Debug, Error)]
15#[error("Failed to extract font face from blob")]
16pub struct FontFaceExtractionError;