Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
On Mon, 18 Apr 2005 14:40:25 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > Op ma, 18-04-2005 te 14:23 -0300, schreef Jonatan Liljedahl: > > They don't get arrows unless you set the arrow property on them. > > > > If you do > > > >

Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
On Mon, 18 Apr 2005 13:26:31 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > > > like I said earlier, I'd prefer the property to be boolean and be > > > read by Text_spanner code. The arrow routines are called from > > > C++ only. > > > > I made it a boolean pair. Your preference wou

Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
s and pass them on. Anyhow, here is version 3 of my patch. I cleaned up the code, reformatted it according to your standards, and used a boolean pair instead of a magic integer. Demonstration: %%% \version "2.5.18" %% demonstration of

Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
On Mon, 18 Apr 2005 01:46:37 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > Op ma, 18-04-2005 te 00:49 -0300, schreef Jonatan Liljedahl: > > On Sun, 17 Apr 2005 23:22:38 +0200 > > Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > > > > > >+ static

Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
On Sun, 17 Apr 2005 23:22:38 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > >+ static Stencil make_arrow (Offset &from, Offset &to, int dir, Real > length, Real width); > > don't use & . If you want to modify, use * . Use const& for big > structures. In this case, just copy the arguments

Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
On Sun, 17 Apr 2005 23:22:38 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > Op zo, 17-04-2005 te 18:26 -0300, schreef Jonatan Liljedahl: > > Here's the new version of my arrowline patch. > > > > It lets you put arrows at the head or tail of a line. > >

Arrowlines patch version 2

2005-04-17 Thread Jonatan Liljedahl
%% \version "2.5.18" %% demonstration of line arrows %% By Jonatan Liljedahl <http://kymatica.com> \relative c'' { \override TextSpanner #'edge-text = #'("foo" . "bar") \override TextSpanner #'dash-fraction = #'(