[cairo] [PATCH 5/6] [gl] Use ADD instead of SOURCE when making a mask for overlapping glyphs.

Eric Anholt eric at anholt.net
Wed Jan 13 16:08:08 PST 2010


The whole point of making the mask was to avoid overwriting one glyph
with the data from another.  Whoops.

Fixes ft-show-glyphs-positioning, text-rotate, overlapping-glyphs,
clip-text.
---
 src/cairo-gl-glyphs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cairo-gl-glyphs.c b/src/cairo-gl-glyphs.c
index 23acf2b..fb3bdd4 100644
--- a/src/cairo-gl-glyphs.c
+++ b/src/cairo-gl-glyphs.c
@@ -568,7 +568,7 @@ _cairo_gl_surface_show_glyphs_via_mask (cairo_gl_surface_t	*dst,
 
     _cairo_pattern_init_solid (&solid, CAIRO_COLOR_WHITE, CAIRO_CONTENT_COLOR_ALPHA);
     status = _render_glyphs ((cairo_gl_surface_t *) mask, 0, 0,
-	                     CAIRO_OPERATOR_SOURCE, &solid.base,
+	                     CAIRO_OPERATOR_ADD, &solid.base,
 	                     glyphs, num_glyphs, glyph_extents,
 			     scaled_font, &has_component_alpha,
 			     NULL, remaining_glyphs);
-- 
1.6.5.7



More information about the cairo mailing list