Bug 9185 - SVG with text filled and stroked gives incorrect result
Summary: SVG with text filled and stroked gives incorrect result
Status: RESOLVED INVALID
Alias: None
Product: cairo
Classification: Unclassified
Component: svg backend (show other bugs)
Version: 1.3.2
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Emmanuel Pacaud
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-27 22:00 UTC by Robert Eggleton
Modified: 2008-02-20 11:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.