]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 5043/3: Define markup command \with-outline
authorDavid Kastrup <dak@gnu.org>
Tue, 24 Jan 2017 20:45:49 +0000 (21:45 +0100)
committerDavid Kastrup <dak@gnu.org>
Mon, 30 Jan 2017 13:14:39 +0000 (14:14 +0100)
scm/define-markup-commands.scm

index 9543db464b2a6d1c31457d7551a24c7f2ad314c2..f048aeabce04d53c10ae7de663cdf8b9e133c987 100644 (file)
@@ -2251,6 +2251,14 @@ Set the dimensions of @var{arg} to @var{x} and@tie{}@var{y}."
       `(delay-stencil-evaluation ,(delay expr))
       x y))))
 
+(define-markup-command (with-outline layout props outline arg)
+  (markup? markup?)
+  #:category other
+  "
+Print @var{arg} with the outline and dimensions of @var{outline}."
+  (ly:stencil-outline (interpret-markup layout props arg)
+                      (interpret-markup layout props outline)))
+
 (define-markup-command (with-dimensions-from layout props arg1 arg2)
   (markup? markup?)
   #:category other