shape

fnvoid shape(harfbuzz.font.Font font, harfbuzz.buffer.Buffer buffer, harfbuzz.feature.Feature[] features = null)

Shapes buffer using font turning its Unicode characters content to positioned glyphs. If features is not NULL, it will be used to control the features applied during shaping. If two features have the same tag but overlapping ranges the value of the feature with the higher index takes precedence.

Parameters

fontan #hb_font_t to use for shaping
bufferan #hb_buffer_t to shape
featuresan array of user specified #hb_feature_t or NULL