Skip to main content

plan_embedded

Function plan_embedded 

Source
pub(crate) fn plan_embedded(runs: &[TextRun]) -> Result<Vec<EmbeddedFontPlan>>
Expand description

Plan every embedded face touched by runs. Returns one EmbeddedFontPlan per face actually referenced, in stable (EmbeddedFontId-sorted) order.

ยงErrors

Returns an error if subsetting fails for a face: only possible with corrupted font data, which the bundled cuts are not.