shape

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

font harfbuzz.font.Font

an #hb_font_t to use for shaping

buffer harfbuzz.buffer.Buffer

an #hb_buffer_t to shape

features harfbuzz.feature.Feature[]

an array of user specified #hb_feature_t or NULL