Skip to main content

with_temporary_memory

Function with_temporary_memory 

Source
pub(crate) fn with_temporary_memory<R>(
    outline: &OutlineGlyph<'_>,
    hinting: Hinting,
    memory: Option<&mut [u8]>,
    f: impl FnMut(&mut [u8]) -> R,
) -> R
Expand description

Invokes the callback with a memory buffer suitable for drawing the given outline.