mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-01 03:18:00 +02:00
Update tests to new cairo_text_cluster_flags_t API
This commit is contained in:
parent
1fe7088a11
commit
cb10dfe715
2 changed files with 11 additions and 14 deletions
|
|
@ -95,14 +95,14 @@ test_scaled_font_render_glyph (cairo_scaled_font_t *scaled_font,
|
|||
}
|
||||
|
||||
static cairo_status_t
|
||||
test_scaled_font_text_to_glyphs (cairo_scaled_font_t *scaled_font,
|
||||
const char *utf8,
|
||||
int utf8_len,
|
||||
cairo_glyph_t **glyphs,
|
||||
int *num_glyphs,
|
||||
cairo_text_cluster_t **clusters,
|
||||
int *num_clusters,
|
||||
cairo_bool_t *backward)
|
||||
test_scaled_font_text_to_glyphs (cairo_scaled_font_t *scaled_font,
|
||||
const char *utf8,
|
||||
int utf8_len,
|
||||
cairo_glyph_t **glyphs,
|
||||
int *num_glyphs,
|
||||
cairo_text_cluster_t **clusters,
|
||||
int *num_clusters,
|
||||
cairo_text_cluster_flags_t *cluster_flags)
|
||||
{
|
||||
cairo_scaled_font_t *fallback_scaled_font;
|
||||
|
||||
|
|
@ -112,8 +112,7 @@ test_scaled_font_text_to_glyphs (cairo_scaled_font_t *scaled_font,
|
|||
return cairo_scaled_font_text_to_glyphs (fallback_scaled_font, 0, 0,
|
||||
utf8, utf8_len,
|
||||
glyphs, num_glyphs,
|
||||
clusters, num_clusters,
|
||||
backward);
|
||||
clusters, num_clusters, cluster_flags);
|
||||
}
|
||||
|
||||
static cairo_font_face_t *user_font_face = NULL;
|
||||
|
|
|
|||
|
|
@ -157,8 +157,7 @@ test_scaled_font_unicode_to_glyph (cairo_scaled_font_t *scaled_font,
|
|||
status = cairo_scaled_font_text_to_glyphs (r->measuring_font, 0, 0,
|
||||
utf8, -1,
|
||||
&glyphs, &num_glyphs,
|
||||
NULL, NULL,
|
||||
NULL);
|
||||
NULL, NULL, NULL);
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
|
|
@ -257,8 +256,7 @@ get_user_font_face (cairo_font_face_t *substitute_font,
|
|||
cairo_scaled_font_text_to_glyphs (measure, 0, 0,
|
||||
text, -1,
|
||||
&glyphs, &num_glyphs,
|
||||
NULL, NULL,
|
||||
NULL);
|
||||
NULL, NULL, NULL);
|
||||
|
||||
/* find the glyph range the text covers */
|
||||
max_index = glyphs[0].index;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue