Function rustybuzz::shape

source ·
pub fn shape(
    face: &Face<'_>,
    features: &[Feature],
    buffer: UnicodeBuffer
) -> GlyphBuffer
Expand description

Shapes the buffer content using provided font and features.

Consumes the buffer. You can then run GlyphBuffer::clear to get the UnicodeBuffer back without allocating a new one.