Bug 9185

Summary: SVG with text filled and stroked gives incorrect result
Product: cairo Reporter: Robert Eggleton <robertt>
Component: svg backendAssignee: Emmanuel Pacaud <emmanuel.pacaud>
Status: RESOLVED INVALID QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high    
Version: 1.3.2   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Robert Eggleton 2006-11-27 22:00:35 UTC
Rendering an SVG file which includes text which is both filled and stroked
results in the stroked part of the text appearing to the right of the original
(giving a ghosting appearance).

The problem appears to reside in svg_cairo.c (I'm using libsvg-cairo-0.1.6). I
added a cairo_move_to call prior to the cairo_text_path call:


cairo_move_to(svg_cairo->cr,x,y);
cairo_text_path(svg_cairo->crl,utf8);

This corrects the problem.
Comment 1 Behdad Esfahbod 2006-11-28 09:46:38 UTC
svg-cairo is obsolete and unmaintained.  Use librsvg2 instead.
Comment 2 Behdad Esfahbod 2006-12-08 13:13:14 UTC
commit 16c7587f2dcab5abbbe62505e64c1ac9441dfb8e
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Fri Dec 8 15:40:59 2006 -0500

    [slim] Define slim macros to dummy prototypes for non-gcc compilers (#9150)

Comment 3 Behdad Esfahbod 2006-12-08 13:19:04 UTC
(In reply to comment #2)
> commit 16c7587f2dcab5abbbe62505e64c1ac9441dfb8e
> Author: Behdad Esfahbod <behdad@behdad.org>
> Date:   Fri Dec 8 15:40:59 2006 -0500
> 
>     [slim] Define slim macros to dummy prototypes for non-gcc compilers (#9150)
> 
> 

Oops.  Wasn't supposed to come here.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.