mkwebfont_hb-subset 0.5.0

A wrapper for HarfBuzz font subsetting API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

/// An error returned when an allocation fails.
#[derive(Debug, Error)]
#[error("Failed to allocate object")]
pub struct AllocationError;

/// An error returned when font face could not be subset.
#[derive(Debug, Error)]
#[error("Failed to subset font face")]
pub struct SubsettingError;

/// An error returned when a font face could not be extracted from blob.
#[derive(Debug, Error)]
#[error("Failed to extract font face from blob")]
pub struct FontFaceExtractionError;