Function process_chunk

Source
fn process_chunk(
    chunk: &TextChunk,
    fonts_cache: &HashMap<Font, Arc<ResolvedFont>>,
    resolver: &FontResolver<'_>,
    fontdb: &mut Arc<Database>,
) -> Vec<GlyphCluster>
Expand description

Converts a text chunk into a list of outlined clusters.

This function will do the BIDI reordering, text shaping and glyphs outlining, but not the text layouting. So all clusters are in the 0x0 position.