diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-03 18:26:50 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-03 18:26:50 +0100 |
commit | 6003ab77e1ebefadb97338de0e7da4a76d973b1a (patch) | |
tree | e375335dac3abfdd3e75cb18a317824556de84f6 /src/cairo-user-font.c | |
parent | 2a9903dbbfeb3fe843f0d618d15674b37a29f3a9 (diff) | |
download | cairo-6003ab77e1ebefadb97338de0e7da4a76d973b1a.tar.gz |
Export meta-surface
The meta-surface is a vital tool to record a trace of drawing commands
in-memory. As such it is used throughout cairo.
The value of such a surface is immediately obvious and should be
applicable for many applications. The first such case is by
cairo-test-trace which wants to record the entire graph of drawing commands
that affect a surface in the event of a failure.
Diffstat (limited to 'src/cairo-user-font.c')
-rw-r--r-- | src/cairo-user-font.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cairo-user-font.c b/src/cairo-user-font.c index 5ab9751d1..1adfd7d64 100644 --- a/src/cairo-user-font.c +++ b/src/cairo-user-font.c @@ -85,7 +85,7 @@ _cairo_user_scaled_font_create_meta_context (cairo_user_scaled_font_t *scaled_fo CAIRO_CONTENT_COLOR_ALPHA : CAIRO_CONTENT_ALPHA; - meta_surface = _cairo_meta_surface_create (content, -1, -1); + meta_surface = cairo_meta_surface_create (content, -1, -1); cr = cairo_create (meta_surface); cairo_surface_destroy (meta_surface); @@ -158,8 +158,7 @@ _cairo_user_scaled_glyph_init (void *abstract_font, _cairo_analysis_surface_set_ctm (analysis_surface, &scaled_font->extent_scale); - status = _cairo_meta_surface_replay (meta_surface, - analysis_surface); + status = cairo_meta_surface_replay (meta_surface, analysis_surface); _cairo_analysis_surface_get_bounding_box (analysis_surface, &bbox); cairo_surface_destroy (analysis_surface); @@ -214,7 +213,7 @@ _cairo_user_scaled_glyph_init (void *abstract_font, cairo_surface_set_device_offset (surface, - _cairo_fixed_integer_floor (scaled_glyph->bbox.p1.x), - _cairo_fixed_integer_floor (scaled_glyph->bbox.p1.y)); - status = _cairo_meta_surface_replay (meta_surface, surface); + status = cairo_meta_surface_replay (meta_surface, surface); if (unlikely (status)) { cairo_surface_destroy(surface); |