Bug 4409

Summary: Dashes are missing initial caps
Product: cairo Reporter: Carl Worth <cworth>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high    
Version: 1.0.1   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Carl Worth 2005-09-09 17:09:14 UTC
When dashing, each dash is receiving a trailing cap, but no initial cap as it
should.
Comment 1 Carl Worth 2005-09-27 12:53:22 UTC
2005-09-27  Carl Worth  <cworth@cworth.org>

        * ROADMAP: Note that bug #4409 (Dashes are missing initial caps)
        is now fixed.

        * src/cairo-path-stroke.c: (_cairo_stroker_add_cap),
        (_cairo_stroker_add_leading_cap),
        (_cairo_stroker_add_trailing_cap),
        (_cairo_stroker_add_caps): Move face-flipping from inside
        _cairo_stroker_add_caps to new _cairo_stroker_add_leading_cap
        variant of _cairo_stoker_add_cap.

        * src/cairo-path-stroke.c: (_cairo_stroker_line_to_dashed): Change
        to call _cairo_stroker_add_leading_cap or
        _cairo_stroker_add_trailing_cap as appropriate.

        * test/Makefile.am (XFAIL_TESTS):
        * test/dash-caps-joins-ref.png:
        * test/dash-caps-joins.c: (main): Remove dash-caps-joins from the
        XFAIL list and add reference image.

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.