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 its 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: a value out of range, a file the facts do not describe, a transition only single pictures take between nodes that are not.