autobase 0.2.1

Utilities for manipulating BASE tables for OpenType fonts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use skrifa::Tag;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum AutobaseError {
    #[error("No baseline tag found for script {script} and baseline tag {tag}")]
    BaselineTagNotFound { script: Tag, tag: Tag },
    #[error("Problem reading font: {0}")]
    FontRead(#[from] skrifa::raw::ReadError),
    #[error("BASE table script list not found")]
    BaseScriptListNotFound,
    #[error("BASE script record not found for script {script}")]
    BaseScriptNotFound { script: Tag },
    #[error("Error building binary font: {0}")]
    FontBuild(#[from] write_fonts::BuilderError),
}