Function rustybuzz::shape_with_plan
source · pub fn shape_with_plan(
face: &hb_font_t<'_>,
plan: &hb_ot_shape_plan_t,
buffer: UnicodeBuffer,
) -> GlyphBuffer
Expand description
Shapes the buffer content using the provided font and plan.
Consumes the buffer. You can then run GlyphBuffer::clear
to get the UnicodeBuffer
back
without allocating a new one.
It is up to the caller to ensure that the shape plan matches the properties of the provided buffer, otherwise the shaping result will likely be incorrect.
§Panics
Will panic when debugging assertions are enabled if the buffer and plan have mismatched properties.