|
From: | Auto mailings of changes to Lily Issues |
Subject: | [Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] #4766 Patch: new markup command `\with-dimensions-from` |
Date: | Sun, 07 Feb 2016 13:28:36 +0000 |
[issues:#4766] Patch: new markup command \with-dimensions-from
Status: Started
Created: Sun Feb 07, 2016 01:28 PM UTC by Simon Albrecht
Last Updated: Sun Feb 07, 2016 01:28 PM UTC
Owner: Simon Albrecht
Attachments:
This command acts as a front-end to \with-dimensions
, taking the new dimensions from a markup object instead of having them explicitly given.
https://codereview.appspot.com/281710043/
\version "2.19.36" \paper { #(set-paper-size "a10") indent = 0 } #(ly:set-option 'point-and-click #f) \header { tagline = ##f } #(define-markup-command (with-dimensions-from layout props arg1 arg2) (markup? markup?) #:category other " Print @var{arg2} with the dimensions of @var{arg1}." (let* ((stil1 (interpret-markup layout props arg1)) (x (ly:stencil-extent stil1 0)) (y (ly:stencil-extent stil1 1))) (interpret-markup layout props (markup #:with-dimensions x y arg2)))) \markup { \pattern #5 #Y #0 "x" \pattern #5 #Y #0 \with-dimensions-from "x" "f" \pattern #5 #Y #0 \with-dimensions-from "x" "g" \override #'(baseline-skip . 2) \column { \pattern #5 #X #0 "n" \pattern #5 #X #0 \with-dimensions-from "n" "m" \pattern #5 #X #0 \with-dimensions-from "n" "!" } }
Sent from sourceforge.net because address@hidden is subscribed to https://sourceforge.net/p/testlilyissues/issues/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________ Testlilyissues-auto mailing list address@hidden https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto
[Prev in Thread] | Current Thread | [Next in Thread] |