[cairo] Triangular Line Caps Patch

Tavmjong Bah tavmjong at free.fr
Thu Mar 10 12:26:41 UTC 2016


On Thu, 2016-03-10 at 18:57 +1030, Adrian Johnson wrote:
> On 10/03/16 12:52, Lucian Hodor wrote:
> > 
> > @@ -2105,6 +2106,9 @@ _cairo_svg_surface_emit_stroke_style
> > (cairo_output_stream_t	   *output,
> >  	case CAIRO_LINE_CAP_SQUARE:
> >  	    line_cap = "square";
> >  	    break;
> > +        case CAIRO_LINE_CAP_TRIANGULAR:
> > +	    line_cap = "triangular";
> > +	    break;
> >  	default:
> >  	    ASSERT_NOT_REACHED;
> I could not find triangular line caps in the SVG specification and it
> does not work with the SVG viewers I tried (inkscape, firefox,
> rsvg-view). Is this a new feature planned for SVG? Do you have a link
> to it?

It is not part of the SVG specification nor have we discussed adding
it. (We have added two new line joins: 'miter-clip' and 'arcs'.)

Triangle line caps are included in other standards (e.g. PCL, HPGL, and
various Microsoft products).

Tav






More information about the cairo mailing list