Skip to main content

compile

Function compile 

Source
pub fn compile(
    spec: &VideoSpec,
    facts: &Facts,
    fonts: &[Arc<[u8]>],
) -> Result<Compiled, ComposeError>
Expand description

Compiles spec with facts about its files.

fonts are the font files an export registers, in fallback order; with them, text that must fit is measured and shrunk to fit.

ยงErrors

Returns where in the spec, and why, it cannot be compiled.