[cairo-commit] test/user-font-proxy.c test/user-font-rescale.c
Behdad Esfahbod
behdad at kemper.freedesktop.org
Wed Sep 17 21:31:23 PDT 2008
test/user-font-proxy.c | 19 +++++++++----------
test/user-font-rescale.c | 6 ++----
2 files changed, 11 insertions(+), 14 deletions(-)
New commits:
commit cb10dfe7153eeac749c64ce6a61f2fd3faf385d0
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Thu Sep 18 00:30:57 2008 -0400
Update tests to new cairo_text_cluster_flags_t API
diff --git a/test/user-font-proxy.c b/test/user-font-proxy.c
index a476966..1a8ad68 100644
--- a/test/user-font-proxy.c
+++ b/test/user-font-proxy.c
@@ -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;
diff --git a/test/user-font-rescale.c b/test/user-font-rescale.c
index c543daa..af2be2f 100644
--- a/test/user-font-rescale.c
+++ b/test/user-font-rescale.c
@@ -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;
More information about the cairo-commit
mailing list