lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: point-and-click in SVG


From: Jan Nieuwenhuizen
Subject: Re: point-and-click in SVG
Date: Thu, 04 Apr 2013 07:05:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Graham Percival writes:

> I've got a patch which adds point-and-click,

Nice!

> This is because output-svg.scm's
>   (grob-cause ...)
> is called *before* drawing the path of the notehead, and SVG has
> no z-index.

What if you have grob-cause set a grob-cause for the subsequent
notehead/grob to pick up and draw?  Something like

   (define cause #f)
   (define (grob-cause offset grob)
     (set! cause (ly:format ...)))

   (define (named-glyph font name)
     (dispatch `(fontify ,font ,name ,cause)))

would that work?

Can some of this code be shared with output-ps and moved to
output-lib.scm?

Greetings,
Jan
-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]