Lines Matching refs:cluster
413 if (hb_glyph[i].cluster != hb_glyph[i-1].cluster) in helper_cairo_line_from_buffer()
446 unsigned int cluster = 0; in helper_cairo_line_from_buffer() local
448 l->clusters[cluster].num_glyphs++; in helper_cairo_line_from_buffer()
451 if (hb_glyph[i].cluster != hb_glyph[i+1].cluster) { in helper_cairo_line_from_buffer()
452 g_assert (hb_glyph[i].cluster > hb_glyph[i+1].cluster); in helper_cairo_line_from_buffer()
454 end = start + hb_glyph[i].cluster - hb_glyph[i+1].cluster; in helper_cairo_line_from_buffer()
456 end = g_utf8_offset_to_pointer (start, hb_glyph[i].cluster - hb_glyph[i+1].cluster); in helper_cairo_line_from_buffer()
457 l->clusters[cluster].num_bytes = end - start; in helper_cairo_line_from_buffer()
459 cluster++; in helper_cairo_line_from_buffer()
461 l->clusters[cluster].num_glyphs++; in helper_cairo_line_from_buffer()
463 l->clusters[cluster].num_bytes = l->utf8 + text_len - start; in helper_cairo_line_from_buffer()
466 if (hb_glyph[i].cluster != hb_glyph[i-1].cluster) { in helper_cairo_line_from_buffer()
467 g_assert (hb_glyph[i].cluster > hb_glyph[i-1].cluster); in helper_cairo_line_from_buffer()
469 end = start + hb_glyph[i].cluster - hb_glyph[i-1].cluster; in helper_cairo_line_from_buffer()
471 end = g_utf8_offset_to_pointer (start, hb_glyph[i].cluster - hb_glyph[i-1].cluster); in helper_cairo_line_from_buffer()
472 l->clusters[cluster].num_bytes = end - start; in helper_cairo_line_from_buffer()
474 cluster++; in helper_cairo_line_from_buffer()
476 l->clusters[cluster].num_glyphs++; in helper_cairo_line_from_buffer()
478 l->clusters[cluster].num_bytes = l->utf8 + text_len - start; in helper_cairo_line_from_buffer()