[cairo] Wanted features in Cairo.

Behdad Esfahbod behdad at behdad.org
Thu Jun 28 13:47:32 PDT 2007

On Tue, 2007-06-26 at 08:50 -0400, Sebastien Pouliot wrote:
> Hello Bill,
> > Yes I very much suspect that he wants at least 3 end caps, possibly 4.
> > There is the two ends of the lines, and the two ends of each internal
> > dash. It is also possible that one of the end caps is used for both
> > ends of the internal dash, if this is what Microsoft did I think it
> > would be acceptable to copy that.
> You're right, Silverlight use 3 different cap positions - the start, the
> end and the dash. The fourth one isn't required but I guess it could be
> useful to others.
> Also SL provides 4 types of cap, Flat, Square, Round and Triangle. The
> last one isn't available in Cairo. Adding a new one is probably not a
> big deal, but I wonder if it would be more useful(*) to provide support
> for custom cap, where the user code does it's own drawing of the cap
> using a provided start point and direction.

The main problem with adding new cap types or more control is that
whether PS/PDF/SVG can be convinced to do that.  I'm afraid the answer
is no.

As for custom cap, we've wanted to do that for a long time.  Any idea
how the API may look like?


> (*) E.g. libgdiplus, which is also Cairo-based, could benefit from this.
> Thanks,

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759

More information about the cairo mailing list