pangolite_glyph_string_set_size(glyphs, 0);
dvng_engine_shape(const char       *fontCharset,                  const gunichar2  *text,                  gint             length,                  PangoliteAnalysis    *analysis,                  PangoliteGlyphString *glyphs){  DvngFontInfo    *fontInfo;  const gunichar2 *p, *log_cluster;  gunichar2       cluster[MAX_CLUSTER_CHRS];  gint            num_chrs;  StateType       aSt = St0;  pangolite_glyph_string_set_size(glyphs, 0);  fontInfo = get_font_info(fontCharset);  p = text;  while (p < text + length) {    log_cluster = p;    aSt = St0;    p = get_next_cluster(p, text + length - p, cluster, &num_chrs, &aSt);    add_cluster(fontInfo, glyphs, log_cluster-text, cluster, num_chrs, &aSt);  }}