Lines Matching refs:cluster
254 unsigned int cluster)
265 glyph->cluster = cluster;
476 if (cluster_start <= info[i].cluster && info[i].cluster < cluster_end)
529 last_cluster = info[0].cluster;
531 if (last_cluster != info[i].cluster) {
534 last_cluster = info[i].cluster;
547 unsigned int cluster = info[start].cluster;
550 cluster = MIN (cluster, info[i].cluster);
553 while (end < len && info[end - 1].cluster == info[end].cluster)
557 while (idx < start && info[start - 1].cluster == info[start].cluster)
562 for (unsigned int i = out_len; i && out_info[i - 1].cluster == info[start].cluster; i--)
563 out_info[i - 1].cluster = cluster;
566 info[i].cluster = cluster;
578 unsigned int cluster = out_info[start].cluster;
581 cluster = MIN (cluster, out_info[i].cluster);
584 while (start && out_info[start - 1].cluster == out_info[start].cluster)
588 while (end < out_len && out_info[end - 1].cluster == out_info[end].cluster)
593 for (unsigned int i = idx; i < len && info[i].cluster == out_info[end - 1].cluster; i++)
594 info[i].cluster = cluster;
597 out_info[i].cluster = cluster;
602 unsigned int cluster = info[idx].cluster;
603 if (idx + 1 < len && cluster == info[idx + 1].cluster)
605 /* Cluster survives; do nothing. */
611 /* Merge cluster backward. */
612 if (cluster < out_info[out_len - 1].cluster)
614 unsigned int old_cluster = out_info[out_len - 1].cluster;
615 for (unsigned i = out_len; i && out_info[i - 1].cluster == old_cluster; i--)
616 out_info[i - 1].cluster = cluster;
623 /* Merge cluster forward. */
1241 * @cluster: the cluster value of @codepoint.
1244 * gives it the initial cluster value of @cluster. Clusters can be any thing
1247 * #hb_glyph_info_t.cluster field.
1257 unsigned int cluster)
1259 buffer->add (codepoint, cluster);
1410 * reversed, then each cluster (consecutive items having the
1411 * same cluster number) are reversed again.
1676 /* Total cluster advance */
1699 /* Transfer all cluster advance to the last glyph. */
1705 /* Transfer all cluster advance to the first glyph. */
1720 * Reorders a glyph buffer to have canonical in-cluster glyph order / position.
1742 if (info[start].cluster != info[end].cluster) {